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

[Xen-changelog] Fix isConsoleDead() to actually run a command on the DomU, since a dead



# HG changeset patch
# User dan@xxxxxxxxxxxxxxxxxxxxxxxxxxx
# Node ID 85eef527ba7432f0e6de9eac1902e3487f31b43b
# Parent  243265ade4045314ee4170436cc704afafda54cf
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.

diff -r 243265ade404 -r 85eef527ba74 tools/xm-test/lib/XmTestLib/Test.py
--- a/tools/xm-test/lib/XmTestLib/Test.py       Mon Nov 28 17:22:02 2005
+++ b/tools/xm-test/lib/XmTestLib/Test.py       Mon Nov 28 18:22:02 2005
@@ -174,9 +174,11 @@
     try:
         domain.start()
         console = XmConsole(domain.getName())
+        console.runCmd("ls")
     except DomainError, e:
         return True
     except ConsoleError, e:
+        domain.destroy()
         return True
 
     domain.destroy()

_______________________________________________
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®.