summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Lagerwall <rosslagerwall@gmail.com>2015-06-21 09:24:24 +0100
committerMartin Pitt <martin.pitt@ubuntu.com>2015-06-29 16:27:13 +0200
commit7db2680edb561fc36f2a13ac5e025deeeb7c9f58 (patch)
tree864ab1716d9eba603b889345a2845dab0072ab5d
parentca6084154c391cc022c1394698ae5b7200dd06c4 (diff)
integration-tests: Settle while waiting for property change
Since there's no main loop running, perform a settle() while waiting for the smart-updated property to change, otherwise it can hang indefinitely. https://bugs.freedesktop.org/show_bug.cgi?id=91043
-rwxr-xr-xsrc/tests/integration-test1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/integration-test b/src/tests/integration-test
index 89649f8..6f2a71a 100755
--- a/src/tests/integration-test
+++ b/src/tests/integration-test
@@ -1212,6 +1212,7 @@ class Smart(UDisksTestCase):
# wait for SMART data to be read
while ata.get_property('smart-updated') == 0:
sys.stderr.write('[wait for data] ')
+ self.client.settle()
time.sleep(0.5)
# this is of course not truly correct for a test suite, but let's