|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH][XM-TEST] Fix isConsoleDead() to match changes in Con
This patch fixes the isConsoleDead() routine so that it is again able
to detect console system death. Since we can no longer tell if the
system is dead by just attaching the console, we must try to run a
command and watch for failure.
This makes 04_memset_smallmem detect the death and restart the console
daemon, so that subsequent tests don't fail unnecessarily.
Signed-off-by: Dan Smith <danms@xxxxxxxxxx>
# HG changeset patch
# User dan@xxxxxxxxxxxxxxxxxxxxxxxxxxx
# Node ID 1f519eb4eac992939922af1c6b75b8f3163dc540
# Parent 2eb868d02f0f8ee0964d6322c6585be6ce0de123
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 2eb868d02f0f -r 1f519eb4eac9 tools/xm-test/lib/XmTestLib/Test.py
--- a/tools/xm-test/lib/XmTestLib/Test.py Mon Nov 28 12:39:22 2005
+++ b/tools/xm-test/lib/XmTestLib/Test.py Mon Nov 28 17:40:41 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()
--
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms@xxxxxxxxxx
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH][XM-TEST] Fix isConsoleDead() to match changes in Console.py,
Dan Smith <=
|
|
|
|
|