]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Fix bug when running archiveless jobs 785/head
authorZack Cerza <zack@redhat.com>
Wed, 10 Feb 2016 17:41:32 +0000 (10:41 -0700)
committerZack Cerza <zack@redhat.com>
Wed, 10 Feb 2016 17:41:32 +0000 (10:41 -0700)
We were trying to tell the timer to write to a nonexistent file

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/run_tasks.py

index dfb0bdc57efbd4d21c40f4026ee6ac5b67b4c6bc..ab74f3b6b1395e655395bf122d6f6152f9635911 100644 (file)
@@ -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: