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 | |
---|
11 | import commands |
---|
12 | |
---|
13 | from XmTestLib import * |
---|
14 | |
---|
15 | eyecatcher = "Error:" |
---|
16 | |
---|
17 | ret, output = traceCommand("xm shutdown 9999") |
---|
18 | where = output.find(eyecatcher) |
---|
19 | if (ret == 0): |
---|
20 | FAIL("xm shutdown returned invalid %i == 0" % ret) |
---|
21 | elif where == -1: |
---|
22 | FAIL("xm shutdown failed to report error for bad domid") |
---|
Note: See
TracBrowser
for help on using the repository browser.