From 8d3dab20b56e5bd4fdef181e145b03bb6721703f Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Wed, 28 Apr 2021 02:52:58 +0300 Subject: [PATCH] tests: fix topotest polling log The current log prints maximum wait time which is not actually correct, because it doesn't include the command execution time. We usually have "failed after X seconds" log with X being far longer than this maximum. Let's print the maximum number of tries instead. Signed-off-by: Igor Ryzhov --- tests/topotests/lib/topotest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py index 2a46115850..2a5bd17361 100644 --- a/tests/topotests/lib/topotest.py +++ b/tests/topotests/lib/topotest.py @@ -351,8 +351,8 @@ def run_and_expect(func, what, count=20, wait=3): func_name = func.__name__ logger.info( - "'{}' polling started (interval {} secs, maximum wait {} secs)".format( - func_name, wait, int(wait * count) + "'{}' polling started (interval {} secs, maximum {} tries)".format( + func_name, wait, count ) ) -- 2.39.5