From: Martin Pitt Date: Fri, 7 Sep 2012 06:47:08 +0000 (+0200) Subject: integration-test: Fix start_daemon() for restarts X-Git-Tag: upstream/2.1.2~123^2~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=df220ca6eee1df665ab80cfafc515afde2075fbb;p=platform%2Fupstream%2Fudisks2.git 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. --- 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)