WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [XM-TEST] Tweak 06_block-destroy_check_li

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XM-TEST] Tweak 06_block-destroy_check_list_pos to allow more time to check
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 05 Jan 2007 01:30:08 -0800
Delivery-date: Fri, 05 Jan 2007 01:30:13 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Steven Hand <steven@xxxxxxxxxxxxx>
# Date 1167923320 0
# Node ID b82e1ed0870a9a3627e910686dc34d78185d584e
# Parent  b071319927b6d939bc119666f24ed34acd1bd587
[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@xxxxxxxxxxxxx>
---
 tools/xm-test/tests/block-destroy/06_block-destroy_check_list_pos.py |    8 
++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff -r b071319927b6 -r b82e1ed0870a 
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      
Thu Jan 04 14:25:58 2007 +0000
+++ b/tools/xm-test/tests/block-destroy/06_block-destroy_check_list_pos.py      
Thu Jan 04 15:08:40 2007 +0000
@@ -6,7 +6,7 @@ from XmTestLib import *
 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 @@ block_detach(domain, "xvda1")
 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")

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XM-TEST] Tweak 06_block-destroy_check_list_pos to allow more time to check, Xen patchbot-unstable <=