From df220ca6eee1df665ab80cfafc515afde2075fbb Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 7 Sep 2012 08:47:08 +0200 Subject: [PATCH] integration-test: Fix start_daemon() for restarts klass.manager is already initialized when we are restarting; ensure we properly wait for the daemon to start up. --- src/tests/integration-test | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tests/integration-test b/src/tests/integration-test index 517b4bf..1046a67 100755 --- a/src/tests/integration-test +++ b/src/tests/integration-test @@ -163,6 +163,7 @@ class UDisksTestCase(unittest.TestCase): # wait until the daemon has started up timeout = 10 + klass.manager = None while klass.manager is None and timeout > 0: time.sleep(0.2) klass.client = UDisks.Client.new_sync(None) -- 2.7.4