ia64/xen-unstable
changeset 8531:970cf1fff5f2
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@br.ibm.com>
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@br.ibm.com>
author | root@kct |
---|---|
date | Mon Jan 09 11:24:02 2006 +0000 (2006-01-09) |
parents | 8af1199488d3 |
children | dfb836264898 |
files | tools/xm-test/tests/block-destroy/06_block-destroy_check_list_pos.py |
line diff
1.1 --- a/tools/xm-test/tests/block-destroy/06_block-destroy_check_list_pos.py Mon Jan 09 11:22:17 2006 +0000 1.2 +++ b/tools/xm-test/tests/block-destroy/06_block-destroy_check_list_pos.py Mon Jan 09 11:24:02 2006 +0000 1.3 @@ -46,6 +46,8 @@ if not checkBlockList(domain): 1.4 if not checkXmLongList(domain): 1.5 FAIL("xm long list does not show that hda1 was attached") 1.6 1.7 +time.sleep(2) 1.8 + 1.9 s, o = traceCommand("xm block-detach %s hda1" % domain.getName()) 1.10 if s != 0: 1.11 FAIL("block-detach failed")