|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-changelog
[Xen-changelog] Fix the unpause_basic test. The console will appear	to h
 
# 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 <=
  
 |  
  
 | 
    | 
  
  
    |   | 
    |