source: trunk/packages/xen-3.1/xen-3.1/tools/xm-test/tests/shutdown/03_shutdown_nonexist_neg.py @ 34

Last change on this file since 34 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

  • Property svn:mime-type set to text/script
File size: 533 bytes
Line 
1#!/usr/bin/python
2
3# Copyright (C) International Business Machines Corp., 2005
4# Author: Paul Larson  <pl@us.ibm.com>
5
6# Description:
7# Positive Tests:
8# Test for xm shutdown
9# 1) call xm shutdown with a nonexistant domain, expect failure
10
11import commands
12
13from XmTestLib import *
14
15eyecatcher = "Error:"
16
17ret, output = traceCommand("xm shutdown 9999")
18where = output.find(eyecatcher)
19if (ret == 0):
20    FAIL("xm shutdown returned invalid %i == 0" % ret)
21elif where == -1:
22    FAIL("xm shutdown failed to report error for bad domid")
Note: See TracBrowser for help on using the repository browser.