WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

[Xen-devel] [PATCH][XM-TEST] Fix isConsoleDead() to match changes in Con

To: Xen Developers <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH][XM-TEST] Fix isConsoleDead() to match changes in Console.py
From: Dan Smith <danms@xxxxxxxxxx>
Date: 2005年11月28日 09:36:35 -0800
Delivery-date: 2005年11月28日 17:36:37 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)
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>
Previous by Date: Re: [Xen-devel] open/stat64 syscalls run faster on Xen VM than standard Linux , xuehai zhang
Next by Date: Re: [Xen-devel] struct shared_info extensibility (or lack thereof) , Keir Fraser
Previous by Thread: [Xen-devel] struct shared_info extensibility (or lack thereof) , Rik van Riel
Next by Thread: Re: [Xen-devel] [PATCH][XM-TEST] Fix isConsoleDead() to match changes in Console.py , Ewan Mellor
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /