debuggers.hg

view tools/xm-test/tests/list/05_list_long_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 from XmTestLib import *
8 import re
10 status, output = traceCommand("xm list --long")
12 if status != 0:
13 FAIL("xm list --long returned invalid %i != 0" % status)
15 if not re.search("\(domain", output):
16 FAIL("long listing missing any (domain ...) root!")
18 if not re.search("\(domid 0\)", output):
19 FAIL("long listing missing (domid 0)!")
21 if re.search("Traceback", output):
22 FAIL("long listing generated a Traceback!")