]> xenbits.xensource.com Git - xenrt-citrix/xenrt.git/commitdiff
Fix an issue where the selftest can permanently hold the power lock
authorAlex Brett <alex.brett@citrix.com>
Fri, 9 Oct 2015 15:44:21 +0000 (16:44 +0100)
committerAlex Brett <alex.brett@citrix.com>
Fri, 9 Oct 2015 15:44:21 +0000 (16:44 +0100)
exec/testcases/selftest/__init__.py

index 70c40cabb617d7b7e7c32d7cdbf35eb666abb6fc..4f3f9ed1309299fcfcecc5858414e9f6f1c0b801 100755 (executable)
@@ -170,7 +170,10 @@ class TCMachineCheck(xenrt.TestCase):
             if self.host.checkAlive():
                 raise xenrt.XRTFailure("Host reachable after powering down")
         finally:
-            powerctl.on()
+            try:
+                powerctl.on()
+            except:
+                pass
             xenrt.sleep(60)
             lock.release()