From: Zack Cerza Date: Tue, 11 Nov 2014 18:26:54 +0000 (-0700) Subject: If timeout is None or zero, don't log X-Git-Tag: 1.1.0~1072^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F355%2Fhead;p=teuthology.git If timeout is None or zero, don't log Signed-off-by: Zack Cerza --- diff --git a/teuthology/results.py b/teuthology/results.py index 7fd31c9df..db5c70c6c 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',