From: Andrew Schoen Date: Mon, 12 Jan 2015 21:08:46 +0000 (-0600) Subject: If a job was marked 'dead' by a task, retain that status on failure X-Git-Tag: 1.1.0~1042^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6c7833552fd5e18e71183a8bc391040e41ea6e99;p=teuthology.git If a job was marked 'dead' by a task, retain that status on failure Signed-off-by: Andrew Schoen --- diff --git a/teuthology/run_tasks.py b/teuthology/run_tasks.py index 49a0fd93e6..3f21c85db7 100644 --- a/teuthology/run_tasks.py +++ b/teuthology/run_tasks.py @@ -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.')