From 4ef0310742db492f87f81ef6ebbed3b3a529f36b Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Tue, 10 Dec 2019 13:14:42 -0800 Subject: [PATCH] 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 --- qa/tasks/ceph_test_case.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 - - -- 2.47.3