|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-devel
[Xen-devel] [PATCH] block-destroy test06 issue in some machines
 
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
 
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread>
 |  
- [Xen-devel] [PATCH] block-destroy test06 issue in some machines,
Glauber de Oliveira Costa <=
 
 
 |  
  
 | 
    | 
  
  
    |   | 
    |