From: Zack Cerza Date: Wed, 10 Feb 2016 17:41:32 +0000 (-0700) Subject: Fix bug when running archiveless jobs X-Git-Tag: 1.1.0~677^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F785%2Fhead;p=teuthology.git Fix bug when running archiveless jobs We were trying to tell the timer to write to a nonexistent file Signed-off-by: Zack Cerza --- diff --git a/teuthology/run_tasks.py b/teuthology/run_tasks.py index dfb0bdc5..ab74f3b6 100644 --- a/teuthology/run_tasks.py +++ b/teuthology/run_tasks.py @@ -47,10 +47,13 @@ def run_one_task(taskname, **kwargs): def run_tasks(tasks, ctx): archive_path = ctx.config.get('archive_path') - timer = Timer( - path=os.path.join(archive_path, 'timing.yaml'), - sync=True, - ) + if archive_path: + timer = Timer( + path=os.path.join(archive_path, 'timing.yaml'), + sync=True, + ) + else: + timer = Timer() stack = [] try: for taskdict in tasks: