Xen 
 
Home About Xen.org Xen Xen Summit Wiki Mailing List Bug Tracker Xen Downloads
 
   
 

xen-changelog

[Xen-changelog] Fix the unpause_basic test. The console will appear to h

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Fix the unpause_basic test. The console will appear to have failed, given the
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 26 Nov 2005 02:36:11 +0000
Delivery-date: Sat, 26 Nov 2005 02:36:56 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 3c21a174e8fcbec6e50aa674e3b920ed7de472f2
# Parent  9981fa5ba62b97bb0e08b24a4559f7ef79ba5b9a
Fix the unpause_basic test.  The console will appear to have failed, given the
current Console.py API, because no bytes have come from it, but that's not a
failure -- an unpaused domain has no reason to output any more data.  We need
to send a command to the domain before we can be sure whether it is alive or
dead, so move the FAIL call, allowing the console connection to throw
ConsoleError.
 
Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r 9981fa5ba62b -r 3c21a174e8fc 
tools/xm-test/tests/unpause/01_unpause_basic_pos.py
--- a/tools/xm-test/tests/unpause/01_unpause_basic_pos.py       Sat Nov 26 
01:08:26 2005
+++ b/tools/xm-test/tests/unpause/01_unpause_basic_pos.py       Sat Nov 26 
01:13:51 2005
@@ -71,11 +71,11 @@
 try:
     console = XmConsole(domain.getName(), historySaveCmds=True)
 except ConsoleError, e:
-    FAIL(str(e))
+    pass
 try:
     run = console.runCmd("ls")
 except ConsoleError, e:
-    pass
+    FAIL(str(e))
 
 # Close the console
 console.closeConsole()

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Fix the unpause_basic test. The console will appear to have failed, given the, Xen patchbot -unstable <=