3
# Copyright (C) International Business Machines Corp., 2005
4
# Author: Li Ge <lge@us.ibm.com>
8
# Test for saving domain with non existent option in the command line.
13
from XmTestLib import *
15
if ENABLE_HVM_SUPPORT:
16
SKIP("Save currently not supported for HVM domains")
18
status, output = traceCommand("xm save -x")
19
eyecatcher1 = "Error:"
20
eyecatcher2 = "Traceback"
21
where1 = output.find(eyecatcher1)
22
where2 = output.find(eyecatcher2)
24
FAIL("xm save returned bad status, expected non 0, status is: %i" % status)
26
FAIL("xm save returned a stack dump, expected nice error message")
28
FAIL("xm save returned bad output, expected Error:, output is: %s" % output)