~ubuntu-branches/ubuntu/intrepid/xen-3.3/intrepid-updates

« back to all changes in this revision

Viewing changes to tools/xm-test/tests/dmesg/02_dmesg_basic_neg.py

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2008-08-14 10:28:57 UTC
  • Revision ID: james.westby@ubuntu.com-20080814102857-a832fn5gowurz5do
Tags: upstream-3.3.0
ImportĀ upstreamĀ versionĀ 3.3.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: Woody Marvel <marvel@us.ibm.com>
 
5
 
 
6
import re
 
7
 
 
8
from XmTestLib import *
 
9
 
 
10
status, output = traceCommand("xm dmesg -x")
 
11
eyecatcher = "Error:"
 
12
where = output.find(eyecatcher)
 
13
if status == 0:
 
14
    FAIL("xm dmesg returned invalid %i != 0" % status)
 
15
elif where == -1:
 
16
    FAIL("xm dmesg failed to report error for bad arg")
 
17