From: Dan Smith Subject: [PATCH][XM-TEST] Update test 01_pause for new console behavior Date: Wed, 16 Nov 2005 14:23:14 -0800 Message-ID: <878xvob5bh.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 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. Signed-off-by: Dan Smith --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=01_pause.patch # HG changeset patch # User dan@guaranine.beaverton.ibm.com # Node ID b3f0df7c3b1a6d9ffa0f05a588d50c122734a554 # Parent 89b1a2e54bafe21642ff227e0b7155cbd626f098 Update 01_pause_basic test for new console behavior. diff -r 89b1a2e54baf -r b3f0df7c3b1a tools/xm-test/tests/pause/01_pause_basic_pos.py --- a/tools/xm-test/tests/pause/01_pause_basic_pos.py Wed Nov 16 21:06:18 2005 +++ b/tools/xm-test/tests/pause/01_pause_basic_pos.py Wed Nov 16 22:22:54 2005 @@ -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") --=-=-= -- 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 --=-=-=--