From: Ian Jackson Date: Thu, 1 Oct 2020 16:02:48 +0000 (+0100) Subject: sg-run-job: Preserve step state "fail" if set by test script X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=65fa47e800310d060673e3941c6e3fe8f061417f;p=osstest.git sg-run-job: Preserve step state "fail" if set by test script If the test script exits nonzero but after setting the step status to 'fail', we can leave it that way. This is particularly relevant if the iffail in the job spec says 'broken' or something. After this change, a step can decide to override that. An alternative would be to have the step script exit zero, but of course that would (generally) leave the job to continue running more steps! Signed-off-by: Ian Jackson --- diff --git a/tcl/JobDB-Executive.tcl b/tcl/JobDB-Executive.tcl index 4fe8569..3824882 100644 --- a/tcl/JobDB-Executive.tcl +++ b/tcl/JobDB-Executive.tcl @@ -325,6 +325,7 @@ proc step-set-status {flight job stepno st} { AND status<>'aborted' AND status<>'broken' AND status<>'starved' + AND status<>'fail' " set pause 0 db-execute-array stopinfo "