aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xm-test/tests/list/02_list_badparm_neg.py
blob: 5c40694b932c9a44722baebb45066655ff9238b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/python

# Copyright (C) International Business Machines Corp., 2005
# Author: Woody Marvel <marvel@us.ibm.com>

import re

from XmTestLib import *

status, output = traceCommand("xm list -x")
eyecatcher = "Error:"
where = output.find(eyecatcher)
if status == 0:
    FAIL("xm list returned invalud %i != 0" % status)
elif where == -1:
    FAIL("xm list failed to report error for bad arg")