3
# Copyright (C) International Business Machines Corp., 2005
4
# Author: Paul Larson <pl@us.ibm.com>
10
# 2) call xm shutdown with a bad parameter, expect failure
14
from XmTestLib import *
18
# Create a domain (default XmTestDomain, with our ramdisk)
19
domain = XmTestDomain()
23
domain.start(noConsole=True)
24
except DomainError, e:
26
print "Failed to create test domain because:"
31
ret, output = traceCommand("xm shutdown -x %s" % domain.getName())
32
where = output.find(eyecatcher)
34
FAIL("xm shutdown returned invalid %i == 0" % ret)
36
FAIL("xm shutdown failed to report error for bad arg")
38
# Stop the domain (nice shutdown)