]> xenbits.xensource.com Git - osstest.git/commitdiff
sg-run-job: Preserve step state "fail" if set by test script
authorIan Jackson <iwj@xenproject.org>
Thu, 1 Oct 2020 16:02:48 +0000 (17:02 +0100)
committerIan Jackson <iwj@xenproject.org>
Thu, 1 Oct 2020 16:10:14 +0000 (17:10 +0100)
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 <iwj@xenproject.org>
tcl/JobDB-Executive.tcl

index 4fe8569655a3f843bf09bf1915ac5340d8948868..38248823e598d50c6537df3196d17caf9038fb06 100644 (file)
@@ -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 "