ia64/xen-unstable

changeset 8069:3c21a174e8fc

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@xensource.com>
author emellor@leeni.uk.xensource.com
date Sat Nov 26 01:13:51 2005 +0000 (2005-11-26)
parents 9981fa5ba62b
children b9181b1c576f
files tools/xm-test/tests/unpause/01_unpause_basic_pos.py
line diff
     1.1 --- a/tools/xm-test/tests/unpause/01_unpause_basic_pos.py	Sat Nov 26 01:08:26 2005 +0000
     1.2 +++ b/tools/xm-test/tests/unpause/01_unpause_basic_pos.py	Sat Nov 26 01:13:51 2005 +0000
     1.3 @@ -71,11 +71,11 @@ if status != 0:
     1.4  try:
     1.5      console = XmConsole(domain.getName(), historySaveCmds=True)
     1.6  except ConsoleError, e:
     1.7 -    FAIL(str(e))
     1.8 +    pass
     1.9  try:
    1.10      run = console.runCmd("ls")
    1.11  except ConsoleError, e:
    1.12 -    pass
    1.13 +    FAIL(str(e))
    1.14  
    1.15  # Close the console
    1.16  console.closeConsole()