direct-io.hg

view tools/xm-test/tests/destroy/01_destroy_basic_pos.py @ 14383:a2458851aaa7

Fix typo in xm-test.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
author Ewan Mellor <ewan@xensource.com>
date Wed Mar 14 21:37:00 2007 +0000 (2007-03-14)
parents bef7f5fcf207
children
line source
1 #!/usr/bin/python
3 # Copyright (C) International Business Machines Corp., 2005
4 # Author: Woody Marvel <marvel@us.ibm.com>
6 import sys
7 import re
8 import time
10 from XmTestLib import *
12 # Create a domain (default XmTestDomain, with our ramdisk)
13 domain = XmTestDomain()
15 # Start it
16 try:
17 console = domain.start()
18 except DomainError, e:
19 if verbose:
20 print "Failed to create test domain because:"
21 print e.extra
22 FAIL(str(e))
24 try:
25 # Run 'ls'
26 run = console.runCmd("ls")
27 except ConsoleError, e:
28 FAIL(str(e))
30 # Close the console
31 domain.closeConsole()
33 # Check the output of 'ls'
34 if not re.search("proc", run["output"]):
35 FAIL("'ls' output looks wrong (Didn't see proc)")
37 # destroy domain - positive test
38 status, output = traceCommand("xm destroy %s" % domain.getName())
39 if status != 0:
40 FAIL("xm destroy returned invalid %i != 0" % status)