]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Skip the 'dead' report on old branches
authorZack Cerza <zack@cerza.org>
Fri, 13 Dec 2013 15:56:23 +0000 (09:56 -0600)
committerZack Cerza <zack@cerza.org>
Fri, 13 Dec 2013 16:48:52 +0000 (10:48 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/queue.py

index 877d3e24c9357685c10273ac532d321108cd7937..d95ea15242fd8f1a60f769945b971852e64ca982 100644 (file)
@@ -226,12 +226,12 @@ def run_with_watchdog(process, job_config):
                 job_info['job_id'],
                 ]
         subprocess.Popen(args).wait()
-
-    # Let's make extra sure that paddles knows the job is finished. We don't
-    # know the status, but if it was a pass or fail it will have already been
-    # reported to paddles. In that case paddles ignores the 'dead' status. If
-    # the job was killed, paddles will use the 'dead' status.
-    report.try_push_job_info(job_info, dict(status='dead'))
+    else:
+        # Let's make sure that paddles knows the job is finished. We don't know
+        # the status, but if it was a pass or fail it will have already been
+        # reported to paddles. In that case paddles ignores the 'dead' status.
+        # If the job was killed, paddles will use the 'dead' status.
+        report.try_push_job_info(job_info, dict(status='dead'))
 
 
 def run_job(job_config, teuth_bin_path):