aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xm-test
diff options
context:
space:
mode:
authorSteven Hand <steven@xensource.com>2007-01-04 15:08:40 +0000
committerSteven Hand <steven@xensource.com>2007-01-04 15:08:40 +0000
commit2ea27d8c999619064bd773ebed712211fd0ea9e3 (patch)
treefa9e81f361a81622a705998f9db2cc5492d7b9a1 /tools/xm-test
parentb2bfd9596fee74d3d3e5f97134c17119aa61a9d4 (diff)
downloadxen-2ea27d8c999619064bd773ebed712211fd0ea9e3.tar.gz
xen-2ea27d8c999619064bd773ebed712211fd0ea9e3.tar.bz2
xen-2ea27d8c999619064bd773ebed712211fd0ea9e3.zip
[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>
Diffstat (limited to 'tools/xm-test')
-rw-r--r--tools/xm-test/tests/block-destroy/06_block-destroy_check_list_pos.py8
1 files changed, 6 insertions, 2 deletions
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 292db063d6..b9fdc0691b 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
@@ -6,7 +6,7 @@
from XmTestLib import *
from XmTestLib.block_utils import *
-import re
+import re, time
def checkXmLongList(domain):
s, o = traceCommand("xm list --long %s" % domain.getName())
@@ -35,4 +35,8 @@ if not checkXmLongList(domain):
block_detach(domain, "xvda1")
if checkXmLongList(domain):
- FAIL("xm long list does not show that xvda1 was removed")
+ # device info is removed by hotplug scripts - give them a chance
+ # to fire (they run asynchronously with us).
+ time.sleep(1)
+ if checkXmLongList(domain):
+ FAIL("xm long list does not show that xvda1 was removed")