[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] block-destroy test06 issue in some machines


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: glommer@xxxxxxxxxx (Glauber de Oliveira Costa)
  • Date: Tue, 3 Jan 2006 17:26:34 +0000
  • Delivery-date: Tue, 03 Jan 2006 19:32:00 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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@xxxxxxxxxx>

-- 
glommer
# 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 <glommer@xxxxxxxxxx>

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")
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.