3
# Copyright (C) International Business Machines Corp., 2005
4
# Author: Woody Marvel <marvel@us.ibm.com>
5
## Description: Test xm memmax bad parameter
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")
16
where = output.find(eyecatcher)
18
FAIL("xm memmax returned invalid %i == 0" % status)
20
FAIL("xm memmax failed to report error for missing arg")
23
status, output = traceCommand("xm mem-max 6666")
25
where = output.find(eyecatcher)
27
FAIL("xm memmax returned invalid %i == 0" % status)
29
FAIL("xm memmax failed to report error for bad arg")