ia64/xen-unstable

annotate tools/xm-test/tests/list/02_list_badparm_neg.py @ 14532:ac5c0a100868

Fix typos.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Fri Mar 23 11:12:25 2007 +0000 (2007-03-23)
parents 725bf42d4713
children
rev   line source
emellor@7647 1 #!/usr/bin/python
emellor@7647 2
emellor@7647 3 # Copyright (C) International Business Machines Corp., 2005
emellor@7647 4 # Author: Woody Marvel <marvel@us.ibm.com>
emellor@7647 5
emellor@7647 6 import re
emellor@7647 7
emellor@7647 8 from XmTestLib import *
emellor@7647 9
emellor@7647 10 status, output = traceCommand("xm list -x")
emellor@7647 11 eyecatcher = "Error:"
emellor@7647 12 where = output.find(eyecatcher)
emellor@7647 13 if status == 0:
ewan@14532 14 FAIL("xm list returned invalid %i != 0" % status)
emellor@7855 15 elif where == -1:
emellor@7647 16 FAIL("xm list failed to report error for bad arg")