[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Remove obsolete startNow() method from XmTestDomain object.



# HG changeset patch
# User stekloff@xxxxxxxxxxxxxxxxxxxxxxxxx
# Node ID 5bf6549aba9621c67a6ab357057ba36e650452c7
# Parent  8fda66ee616b11e28ad1c7227f80d2ee7527ecb1
Remove obsolete startNow() method from XmTestDomain object.

Signed-off-by: Daniel Stekloff <dsteklof@xxxxxxxxxx>

diff -r 8fda66ee616b -r 5bf6549aba96 tools/xm-test/lib/XmTestLib/XenDomain.py
--- a/tools/xm-test/lib/XmTestLib/XenDomain.py  Tue Mar 21 00:10:46 2006
+++ b/tools/xm-test/lib/XmTestLib/XenDomain.py  Tue Mar 21 00:11:18 2006
@@ -251,9 +251,6 @@
         if ENABLE_HVM_SUPPORT:
             waitForBoot()
 
-    def startNow(self):
-        XenDomain.start(self)
-
     def minSafeMem(self):
         return 16
 
diff -r 8fda66ee616b -r 5bf6549aba96 
tools/xm-test/tests/create/10_create_fastdestroy.py
--- a/tools/xm-test/tests/create/10_create_fastdestroy.py       Tue Mar 21 
00:10:46 2006
+++ b/tools/xm-test/tests/create/10_create_fastdestroy.py       Tue Mar 21 
00:11:18 2006
@@ -28,7 +28,7 @@
 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)
diff -r 8fda66ee616b -r 5bf6549aba96 
tools/xm-test/tests/destroy/07_destroy_stale_pos.py
--- a/tools/xm-test/tests/destroy/07_destroy_stale_pos.py       Tue Mar 21 
00:10:46 2006
+++ b/tools/xm-test/tests/destroy/07_destroy_stale_pos.py       Tue Mar 21 
00:11:18 2006
@@ -101,29 +101,24 @@
     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 @@
          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)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.