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:
775 bytes
|
Line | |
---|
1 | #!/usr/bin/python |
---|
2 | |
---|
3 | # Copyright (C) International Business Machines Corp., 2005 |
---|
4 | # Author: Woody Marvel <marvel@us.ibm.com> |
---|
5 | ## Description: Test xm memmax bad parameter |
---|
6 | |
---|
7 | import re |
---|
8 | |
---|
9 | from XmTestLib import * |
---|
10 | |
---|
11 | if ENABLE_HVM_SUPPORT: |
---|
12 | SKIP("Mem-max not supported for HVM domains") |
---|
13 | |
---|
14 | status, output = traceCommand("xm mem-max") |
---|
15 | eyecatcher = "Error:" |
---|
16 | where = output.find(eyecatcher) |
---|
17 | if status == 0: |
---|
18 | FAIL("xm memmax returned invalid %i == 0" % status) |
---|
19 | elif where < 0: |
---|
20 | FAIL("xm memmax failed to report error for missing arg") |
---|
21 | |
---|
22 | |
---|
23 | status, output = traceCommand("xm mem-max 6666") |
---|
24 | eyecatcher = "Error:" |
---|
25 | where = output.find(eyecatcher) |
---|
26 | if status == 0: |
---|
27 | FAIL("xm memmax returned invalid %i == 0" % status) |
---|
28 | elif where < 0: |
---|
29 | FAIL("xm memmax failed to report error for bad arg") |
---|
Note: See
TracBrowser
for help on using the repository browser.