From: root@kct Date: Mon, 9 Jan 2006 11:24:02 +0000 (+0000) Subject: As hotplug events are asynchronous by its nature, the remove event seems X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16551^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d8d1f1f6c57a395892fc3e3a39075e1079c1b9bd;p=xen.git 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 --git a/tools/xm-test/tests/block-destroy/06_block-destroy_check_list_pos.py b/tools/xm-test/tests/block-destroy/06_block-destroy_check_list_pos.py index bc41be984e..7f1c7cd453 100644 --- a/tools/xm-test/tests/block-destroy/06_block-destroy_check_list_pos.py +++ b/tools/xm-test/tests/block-destroy/06_block-destroy_check_list_pos.py @@ -46,6 +46,8 @@ if not checkBlockList(domain): 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")