3
# Copyright (C) International Business Machines Corp., 2005
4
# Author: Dan Smith <danms@us.ibm.com>
6
from XmTestLib import *
12
# These commands aren't suitable for this test, so we
14
skipcommands = ["top", "log"]
16
status, output = traceCommand("xm help --long")
21
lines = output.split("\n")
23
match = re.match("^ ([a-z][^ ]+).*$", l)
25
commands.append(match.group(1))
32
for i in range(0,MAX_ARGS+1):
36
status, output = traceCommand("xm %s %s" % (c, arglist))
38
if output.find("Traceback") != -1:
39
badcommands.append(c + " " + arglist)
41
print "Got Traceback: %s %s" % (c, arglist)
44
FAIL("Got a traceback on: %s" % str(badcommands))