debuggers.hg

view tools/xm-test/tests/memmax/01_memmax_badparm_neg.py @ 0:7d21f7218375

Exact replica of unstable on 051908 + README-this
author Mukesh Rathor
date Mon May 19 15:34:57 2008 -0700 (2008-05-19)
parents
children
line source
1 #!/usr/bin/python
3 # Copyright (C) International Business Machines Corp., 2005
4 # Author: Woody Marvel <marvel@us.ibm.com>
5 ## Description: Test xm memmax bad parameter
7 import re
9 from XmTestLib import *
11 if ENABLE_HVM_SUPPORT:
12 SKIP("Mem-max not supported for HVM domains")
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")
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")