ia64/xen-unstable
changeset 13256:b82e1ed0870a
[XM-TEST] Tweak 06_block-destroy_check_list_pos to allow more time to check
block device has gone away from point of view of domain sxp.
Signed-off-by: Steven Hand <steven@xensource.com>
block device has gone away from point of view of domain sxp.
Signed-off-by: Steven Hand <steven@xensource.com>
author | Steven Hand <steven@xensource.com> |
---|---|
date | Thu Jan 04 15:08:40 2007 +0000 (2007-01-04) |
parents | b071319927b6 |
children | 48c9028e6f8e |
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 Thu Jan 04 14:25:58 2007 +0000 1.2 +++ b/tools/xm-test/tests/block-destroy/06_block-destroy_check_list_pos.py Thu Jan 04 15:08:40 2007 +0000 1.3 @@ -6,7 +6,7 @@ 1.4 from XmTestLib import * 1.5 from XmTestLib.block_utils import * 1.6 1.7 -import re 1.8 +import re, time 1.9 1.10 def checkXmLongList(domain): 1.11 s, o = traceCommand("xm list --long %s" % domain.getName()) 1.12 @@ -35,4 +35,8 @@ if not checkXmLongList(domain): 1.13 block_detach(domain, "xvda1") 1.14 1.15 if checkXmLongList(domain): 1.16 - FAIL("xm long list does not show that xvda1 was removed") 1.17 + # device info is removed by hotplug scripts - give them a chance 1.18 + # to fire (they run asynchronously with us). 1.19 + time.sleep(1) 1.20 + if checkXmLongList(domain): 1.21 + FAIL("xm long list does not show that xvda1 was removed")