ia64/xen-unstable

view tools/xm-test/tests/save/02_save_badparm_neg.py @ 19615:13a4f4e6d0a3

x86 hvm: Correctly emulate task switches into vm86 mode.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue May 19 02:12:04 2009 +0100 (2009-05-19)
parents f1b361b05bf3
children
line source
1 #!/usr/bin/python
3 # Copyright (C) International Business Machines Corp., 2005
4 # Author: Li Ge <lge@us.ibm.com>
6 # Test description:
7 # Negative Test:
8 # Test for saving domain with non existent option in the command line.
9 # Verify fail.
11 import re
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)
23 if status == 0:
24 FAIL("xm save returned bad status, expected non 0, status is: %i" % status)
25 elif where2 == 0:
26 FAIL("xm save returned a stack dump, expected nice error message")
27 elif where1 == -1:
28 FAIL("xm save returned bad output, expected Error:, output is: %s" % output)