ia64/xen-unstable
view tools/xm-test/tests/list/02_list_badparm_neg.py @ 14532:ac5c0a100868
Fix typos.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
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 |
line source
1 #!/usr/bin/python
3 # Copyright (C) International Business Machines Corp., 2005
4 # Author: Woody Marvel <marvel@us.ibm.com>
6 import re
8 from XmTestLib import *
10 status, output = traceCommand("xm list -x")
11 eyecatcher = "Error:"
12 where = output.find(eyecatcher)
13 if status == 0:
14 FAIL("xm list returned invalid %i != 0" % status)
15 elif where == -1:
16 FAIL("xm list failed to report error for bad arg")