From: Patrick Donnelly Date: Tue, 10 Dec 2019 21:14:42 +0000 (-0800) Subject: qa: note timeout in debug message X-Git-Tag: v15.1.0~472^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4ef0310742db492f87f81ef6ebbed3b3a529f36b;p=ceph.git qa: note timeout in debug message 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 --- diff --git a/qa/tasks/ceph_test_case.py b/qa/tasks/ceph_test_case.py index 6b5621f10d3f..f3c258700a5c 100644 --- a/qa/tasks/ceph_test_case.py +++ b/qa/tasks/ceph_test_case.py @@ -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 - -