~ubuntu-branches/ubuntu/utopic/xen/utopic

« back to all changes in this revision

Viewing changes to tools/xm-test/tests/list/05_list_long_pos.py

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2010-05-06 15:47:38 UTC
  • mto: (1.3.1) (15.1.1 sid) (4.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20100506154738-agoz0rlafrh1fnq7
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
 
 
3
# Copyright (C) International Business Machines Corp., 2005
 
4
# Author: Dan Smith <danms@us.ibm.com>
 
5
 
 
6
from XmTestLib import *
 
7
 
 
8
import re
 
9
 
 
10
status, output = traceCommand("xm list --long")
 
11
 
 
12
if status != 0:
 
13
    FAIL("xm list --long returned invalid %i != 0" % status)
 
14
 
 
15
if not re.search("\(domain", output):
 
16
    FAIL("long listing missing any (domain ...) root!")
 
17
 
 
18
if not re.search("\(domid 0\)", output):
 
19
    FAIL("long listing missing (domid 0)!")
 
20
 
 
21
if re.search("Traceback", output):
 
22
    FAIL("long listing generated a Traceback!")