Skip to contentSkip to conversation

Update test 01_pause for new console behavior

PATCH Applied Dan Smith 2 participants 2 messages Nov 16, 2005 – Nov 17, 2005

lore
Share & tools
lore

Dan Smith

author
#0 lore raw

PATCH 1/1 Update test 01_pause for new console behavior

This patch fixes the 01_pause test that started breaking when I recently changed the console attach behavior. We clearly need to not fail if the console fails to attach to a paused domain.

# HG changeset patch
# User [email protected]
# Node ID b3f0df7c3b1a6d9ffa0f05a588d50c122734a554 # Parent 89b1a2e54bafe21642ff227e0b7155cbd626f098 Update 01_pause_basic test for new console behavior.

tools/xm-test/tests/pause/01_pause_basic_pos.py +1 -4
diff -r 89b1a2e54baf -r b3f0df7c3b1a tools/xm-test/tests/pause/01_pause_basic_pos.py
@@ -49,12 +49,9 @@
 if status != 0:
 	FAIL("xm pause returned invalid %i != 0", status)
 
-# Attach a console to it
+# Try to attach a console to it
 try:
     console = XmConsole(domain.getName(), historySaveCmds=True)
-except ConsoleError, e:
-    FAIL(str(e))
-try:
     run = console.runCmd("ls")
     #If we get here, console attached to paused domain (unexpected)
     FAIL("console attached to supposedly paused domain")
Signature · 4 lines
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: [email protected]

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Applied
#1 lore raw
Quoted 5 lines · Dan Smith

This patch fixes the 01_pause test that started breaking when I recently changed the console attach behavior. We clearly need to not fail if the console fails to attach to a paused domain.

Applied, thanks.

Ewan.