ia64/xen-unstable

changeset 9348:5bf6549aba96

Remove obsolete startNow() method from XmTestDomain object.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
author stekloff@elm3b49.beaverton.ibm.com
date Tue Mar 21 01:11:18 2006 +0100 (2006-03-21)
parents 8fda66ee616b
children d218dd060612
files tools/xm-test/lib/XmTestLib/XenDomain.py tools/xm-test/tests/create/10_create_fastdestroy.py tools/xm-test/tests/destroy/07_destroy_stale_pos.py
line diff
     1.1 --- a/tools/xm-test/lib/XmTestLib/XenDomain.py	Tue Mar 21 01:10:46 2006 +0100
     1.2 +++ b/tools/xm-test/lib/XmTestLib/XenDomain.py	Tue Mar 21 01:11:18 2006 +0100
     1.3 @@ -251,9 +251,6 @@ class XmTestDomain(XenDomain):
     1.4          if ENABLE_HVM_SUPPORT:
     1.5              waitForBoot()
     1.6  
     1.7 -    def startNow(self):
     1.8 -        XenDomain.start(self)
     1.9 -
    1.10      def minSafeMem(self):
    1.11          return 16
    1.12  
     2.1 --- a/tools/xm-test/tests/create/10_create_fastdestroy.py	Tue Mar 21 01:10:46 2006 +0100
     2.2 +++ b/tools/xm-test/tests/create/10_create_fastdestroy.py	Tue Mar 21 01:11:18 2006 +0100
     2.3 @@ -28,7 +28,7 @@ i = 0
     2.4  for i in range(0,50):
     2.5      domain = XmTestDomain("testdomain")
     2.6      try:
     2.7 -        domain.startNow()
     2.8 +        domain.start()
     2.9      except DomainError,e:
    2.10          print "Failed: " + e.extra
    2.11          NSPerror = check_for_NSP_error(e.extra)
     3.1 --- a/tools/xm-test/tests/destroy/07_destroy_stale_pos.py	Tue Mar 21 01:10:46 2006 +0100
     3.2 +++ b/tools/xm-test/tests/destroy/07_destroy_stale_pos.py	Tue Mar 21 01:11:18 2006 +0100
     3.3 @@ -101,29 +101,24 @@ def test_sysrq(name):
     3.4      if not re.search("[Ee]rror", output):
     3.5          FAIL("sysrq failed to report error after destroy!")
     3.6  
     3.7 -def runTests(tests, wait):
     3.8 +def runTests(tests):
     3.9      for test in tests:
    3.10          domain = XmTestDomain()
    3.11  
    3.12          # Create a domain
    3.13  
    3.14          try:
    3.15 -            if wait:
    3.16 -                domain.start()
    3.17 -            else:
    3.18 -                domain.startNow()
    3.19 +            domain.start()
    3.20          except DomainError, e:
    3.21              FAIL(str(e))
    3.22  
    3.23 -
    3.24 -        if wait:
    3.25 -            # Attach a console and make sure it's live
    3.26 -            try:
    3.27 -                console = XmConsole(domain.getName())
    3.28 -                console.sendInput("foo")
    3.29 -                console.runCmd("ls")
    3.30 -            except ConsoleError, e:
    3.31 -                FAIL(str(e))
    3.32 +        # Attach a console and make sure it's live
    3.33 +        try:
    3.34 +            console = XmConsole(domain.getName())
    3.35 +            console.sendInput("foo")
    3.36 +            console.runCmd("ls")
    3.37 +        except ConsoleError, e:
    3.38 +            FAIL(str(e))
    3.39  
    3.40          # Destroy it
    3.41                  
    3.42 @@ -137,9 +132,5 @@ tests = [test_mem_set, test_pause, test_
    3.43           test_block_list, test_shutdown, test_domid, test_domname]
    3.44  
    3.45  if verbose:
    3.46 -    print "Running stale tests (nice mode)"
    3.47 -runTests(tests, True)
    3.48 -
    3.49 -if verbose:
    3.50 -    print "Running stale tests (mean mode)"
    3.51 -runTests(tests, False)
    3.52 +    print "Running stale tests"
    3.53 +runTests(tests)