debuggers.hg

view tools/xm-test/tests/list/04_list_goodparm_pos.py @ 0:7d21f7218375

Exact replica of unstable on 051908 + README-this
author Mukesh Rathor
date Mon May 19 15:34:57 2008 -0700 (2008-05-19)
parents
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 sys
7 import re
8 import time
10 from XmTestLib import *
12 domain = XmTestDomain()
14 try:
15 console = domain.start()
16 except DomainError, e:
17 if verbose:
18 print "Failed to create test domain because:"
19 print e.extra
20 FAIL(str(e))
22 status, output = traceCommand("xm list %s" % domain.getName())
24 if status != 0:
25 FAIL("`xm list %s' failed with invalid status %i != 0" % (domain.getName(), status))
27 domain.closeConsole()
28 domain.stop()