Remove obsolete startNow() method from XmTestDomain object.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
This commit is contained in:
stekloff@elm3b49.beaverton.ibm.com committed 2006-03-21 01:11:18 +01:00
1 parent f91ada1ab5
commit db7fe2279d
3 files changed
+12 -24

No files matched your search

-3
View File
@@ -251,9 +251,6 @@ class XmTestDomain(XenDomain):
if ENABLE_HVM_SUPPORT:
waitForBoot()
def startNow(self):
XenDomain.start(self)
def minSafeMem(self):
return 16
@@ -28,7 +28,7 @@ i = 0
for i in range(0,50):
domain = XmTestDomain("testdomain")
try:
domain.startNow()
domain.start()
except DomainError,e:
print "Failed: " + e.extra
NSPerror = check_for_NSP_error(e.extra)
@@ -101,29 +101,24 @@ def test_sysrq(name):
if not re.search("[Ee]rror", output):
FAIL("sysrq failed to report error after destroy!")
def runTests(tests, wait):
def runTests(tests):
for test in tests:
domain = XmTestDomain()
# Create a domain
try:
if wait:
domain.start()
else:
domain.startNow()
domain.start()
except DomainError, e:
FAIL(str(e))
if wait:
# Attach a console and make sure it's live
try:
console = XmConsole(domain.getName())
console.sendInput("foo")
console.runCmd("ls")
except ConsoleError, e:
FAIL(str(e))
# Attach a console and make sure it's live
try:
console = XmConsole(domain.getName())
console.sendInput("foo")
console.runCmd("ls")
except ConsoleError, e:
FAIL(str(e))
# Destroy it
@@ -137,9 +132,5 @@ tests = [test_mem_set, test_pause, test_unpause, test_reboot, test_save,
test_block_list, test_shutdown, test_domid, test_domname]
if verbose:
print "Running stale tests (nice mode)"
runTests(tests, True)
if verbose:
print "Running stale tests (mean mode)"
runTests(tests, False)
print "Running stale tests"
runTests(tests)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.