]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
If timeout is None or zero, don't log 355/head
authorZack Cerza <zack.cerza@inktank.com>
Tue, 11 Nov 2014 18:26:54 +0000 (11:26 -0700)
committerZack Cerza <zack.cerza@inktank.com>
Wed, 12 Nov 2014 18:00:40 +0000 (11:00 -0700)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/results.py

index 7fd31c9df2350a45fdab29166cd67552117f9115..db5c70c6c028b7b98645f9e44cea3204d874dbc4 100644 (file)
@@ -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',