ia64/xen-unstable

changeset 8107:85eef527ba74

Fix isConsoleDead() to actually run a command on the DomU, since a dead
console is no longer exposed when attempting to attach. This makes test
04_memset_smallmem again able to detect console death and restart
xenconsoled so that the rest of the tests can run on x86_64.
author dan@guaranine.beaverton.ibm.com
date Mon Nov 28 18:22:02 2005 +0000 (2005-11-28)
parents 243265ade404
children 36ab34f1c31e e47e953c9e10
files tools/xm-test/lib/XmTestLib/Test.py
line diff
     1.1 --- a/tools/xm-test/lib/XmTestLib/Test.py	Mon Nov 28 17:22:02 2005 +0000
     1.2 +++ b/tools/xm-test/lib/XmTestLib/Test.py	Mon Nov 28 18:22:02 2005 +0000
     1.3 @@ -174,9 +174,11 @@ def isConsoleDead():
     1.4      try:
     1.5          domain.start()
     1.6          console = XmConsole(domain.getName())
     1.7 +        console.runCmd("ls")
     1.8      except DomainError, e:
     1.9          return True
    1.10      except ConsoleError, e:
    1.11 +        domain.destroy()
    1.12          return True
    1.13  
    1.14      domain.destroy()