]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: note timeout in debug message 32162/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 10 Dec 2019 21:14:42 +0000 (13:14 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 16 Dec 2019 23:59:25 +0000 (15:59 -0800)
Some tests set this to a dynamic value, it'd be helpful to know how long
a test is planning to wait.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/tasks/ceph_test_case.py

index 6b5621f10d3f6fa1796cf1e44bde821f0c695085..f3c258700a5c10473d8e342afa733fa14f8a66ec 100644 (file)
@@ -145,7 +145,7 @@ class CephTestCase(unittest.TestCase):
                         elapsed, expect_val, val
                     ))
                 else:
-                    log.debug("wait_until_equal: {0} != {1}, waiting...".format(val, expect_val))
+                    log.debug("wait_until_equal: {0} != {1}, waiting (timeout={2})...".format(val, expect_val, timeout))
                 time.sleep(period)
                 elapsed += period
 
@@ -162,8 +162,6 @@ class CephTestCase(unittest.TestCase):
                 if elapsed >= timeout:
                     raise RuntimeError("Timed out after {0}s".format(elapsed))
                 else:
-                    log.debug("wait_until_true: waiting...")
+                    log.debug("wait_until_true: waiting (timeout={0})...".format(timeout))
                 time.sleep(period)
                 elapsed += period
-
-