]> xenbits.xensource.com Git - osstest.git/commitdiff
sg-run-job: Do not set a step status to pass unless it's running
authorIan Jackson <iwj@xenproject.org>
Fri, 5 Nov 2021 18:04:47 +0000 (18:04 +0000)
committerIan Jackson <iwj@xenproject.org>
Mon, 6 Dec 2021 18:17:13 +0000 (18:17 +0000)
This avoids skip etc. being treated as pass.

Signed-off-by: Ian Jackson <iwj@xenproject.org>
tcl/JobDB-Executive.tcl

index 38248823e598d50c6537df3196d17caf9038fb06..8e0062f590532ce7fd2431796fc4ce4d54ce3a7a 100644 (file)
@@ -326,6 +326,7 @@ proc step-set-status {flight job stepno st} {
                AND status<>'broken'
                AND status<>'starved'
                AND status<>'fail'
+               AND NOT ('$st' = 'pass' AND status <> 'running')
         "
         set pause 0
         db-execute-array stopinfo "