From: Keir Fraser Date: Wed, 11 Mar 2009 10:10:15 +0000 (+0000) Subject: xend: Test tap devices in testDeviceComplete() X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13992^2~119 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=106e7dd3a9c92f98143b4224e3a6b4de0fd62961;p=xen.git xend: Test tap devices in testDeviceComplete() XendDomainInfo.testDeviceComplete() should check block devices have shutdown correctly but it only considers vbd class devices and ignores tap devices. The attached patch changes testDeviceComplete() to wait for both vbd and tap devices to be shutdown correctly. Signed-off-by: Jiri Denemark --- diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index bb0b7f23cb..88a2c2f5eb 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -2888,7 +2888,9 @@ class XendDomainInfo: while True: test = 0 diff = time.time() - start - for i in self.getDeviceController('vbd').deviceIDs(): + vbds = self.getDeviceController('vbd').deviceIDs() + taps = self.getDeviceController('tap').deviceIDs() + for i in vbds + taps: test = 1 log.info("Dev %s still active, looping...", i) time.sleep(0.1)