From: Dan Smith Subject: [PATCH][XM-TEST] Fix isConsoleDead() to match changes in Console.py Date: Mon, 28 Nov 2005 09:36:35 -0800 Message-ID: <87irucy8rg.fsf@theine.beaverton.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen Developers List-Id: xen-devel@lists.xenproject.org --=-=-= 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 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=04_memset.patch # HG changeset patch # User dan@guaranine.beaverton.ibm.com # 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@us.ibm.com --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-=-=--