]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
If a job was marked 'dead' by a task, retain that status on failure
authorAndrew Schoen <aschoen@redhat.com>
Mon, 12 Jan 2015 21:08:46 +0000 (15:08 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 15 Jan 2015 20:18:35 +0000 (14:18 -0600)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
teuthology/run_tasks.py

index 49a0fd93e60636bf926f41ea0ab5ddaec883a3f2..3f21c85db702ea60353ecd6a253ca99e8eca9e5e 100644 (file)
@@ -59,7 +59,9 @@ def run_tasks(tasks, ctx):
             # Prevent connection issues being flagged as failures
             set_status(ctx.summary, 'dead')
         else:
-            set_status(ctx.summary, 'fail')
+            # the status may have been set to dead, leave it as-is if so
+            if not ctx.summary.get('status', '') == 'dead':
+                set_status(ctx.summary, 'fail')
         if 'failure_reason' not in ctx.summary:
             ctx.summary['failure_reason'] = str(e)
         log.exception('Saw exception from tasks.')