projects
/
platform
/
upstream
/
udisks2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5a1450
)
integration-test: Fix start_daemon() for restarts
author
Martin Pitt
<martinpitt@gnome.org>
Fri, 7 Sep 2012 06:47:08 +0000
(08:47 +0200)
committer
Martin Pitt
<martinpitt@gnome.org>
Fri, 7 Sep 2012 06:47:08 +0000
(08:47 +0200)
klass.manager is already initialized when we are restarting; ensure we properly
wait for the daemon to start up.
src/tests/integration-test
patch
|
blob
|
history
diff --git
a/src/tests/integration-test
b/src/tests/integration-test
index
517b4bf
..
1046a67
100755
(executable)
--- 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)