ia64/xen-unstable

view tools/xm-test/tests/save/01_save_basic_pos.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 bef7f5fcf207
children
line source
1 #!/usr/bin/python
3 # Copyright (C) International Business Machines Corp., 2005
4 # Author: Dan Smith <danms@us.ibm.com>
6 import time
8 from XmTestLib import *
10 if ENABLE_HVM_SUPPORT:
11 SKIP("Save currently not supported for HVM domains")
13 domain = XmTestDomain()
15 try:
16 console = domain.start()
17 except DomainError, e:
18 if verbose:
19 print "Failed to create test domain because:"
20 print e.extra
21 FAIL(str(e))
23 domain.closeConsole()
25 # Save it out
26 try:
27 s, o = traceCommand("xm save %s /tmp/test.state" % domain.getName(),
28 timeout=30)
29 except TimeoutError, e:
30 FAIL(str(e))
32 if s != 0:
33 FAIL("save command exited %i != 0" % s)
35 # Make sure it's gone
36 if isDomainRunning(domain.getName()):
37 FAIL("Domain still running after save!")