From b845d5f3650693f068f9865de2794884f120fad7 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 10 Feb 2016 10:41:32 -0700 Subject: [PATCH] Fix bug when running archiveless jobs We were trying to tell the timer to write to a nonexistent file Signed-off-by: Zack Cerza --- teuthology/run_tasks.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/teuthology/run_tasks.py b/teuthology/run_tasks.py index dfb0bdc57e..ab74f3b6b1 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: -- 2.39.5