From: glommer@br.ibm.com (Glauber de Oliveira Costa) Subject: [PATCH] block-destroy test06 issue in some machines Date: Tue, 3 Jan 2006 17:26:34 +0000 Message-ID: <20060103172634.GA30225@br.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="fUYQa+Pmc3FrFX/N" Return-path: Content-Disposition: inline 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-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi all, As hotplug events are asynchronous by its nature, the remove event seems to be missed in some environments. This patch adds a sleep (with the same amount of time of the one after xm block-detach) between attach and detach operations, giving attach enough time to complete, making test 06 suceed. Signed-off-by: Glauber de Oliveira Costa -- glommer --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename=test06-suceed # HG changeset patch # User root@kct # Node ID 8f6d4878d02e65438dabda642d7bf84679dbd464 # Parent 5b30599761b3f0b85e6bb1768f0236294881e900 As hotplug events are asynchronous by its nature, the remove event seems to be missed in some environments. This patch adds a sleep (with the same amount of time of the one after xm block-detach) between attach and detach operations, giving attach enough time to complete, making test 06 suceed. Signed-off-by: Glauber de Oliveira Costa diff -r 5b30599761b3 -r 8f6d4878d02e tools/xm-test/tests/block-destroy/06_block-destroy_check_list_pos.py --- a/tools/xm-test/tests/block-destroy/06_block-destroy_check_list_pos.py Mon Jan 2 10:35:29 2006 +++ b/tools/xm-test/tests/block-destroy/06_block-destroy_check_list_pos.py Tue Jan 3 19:01:55 2006 @@ -46,6 +46,8 @@ if not checkXmLongList(domain): FAIL("xm long list does not show that hda1 was attached") +time.sleep(2) + s, o = traceCommand("xm block-detach %s hda1" % domain.getName()) if s != 0: FAIL("block-detach failed") --fUYQa+Pmc3FrFX/N 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 --fUYQa+Pmc3FrFX/N--