From a0053946a4f1c3f07bd0d550782358d7ca937cee Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 11 Nov 2014 11:26:54 -0700 Subject: [PATCH] If timeout is None or zero, don't log Signed-off-by: Zack Cerza --- teuthology/results.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/teuthology/results.py b/teuthology/results.py index 7fd31c9df2..db5c70c6c0 100644 --- a/teuthology/results.py +++ b/teuthology/results.py @@ -40,7 +40,8 @@ def results(archive_dir, name, email, timeout, dry_run): serializer = ResultsSerializer(archive_base) starttime = time.time() - log.info('Waiting up to %d seconds for tests to finish...', timeout) + if timeout: + log.info('Waiting up to %d seconds for tests to finish...', timeout) while serializer.running_jobs_for_run(name) and timeout > 0: if time.time() - starttime > timeout: log.warn('test(s) did not finish before timeout of %d seconds', -- 2.39.5