diff mbox series

[OSSTEST,07/13] sg-run-job: Do not set a step status to pass unless it's running

Message ID 20211206181839.23463-8-iwj@xenproject.org (mailing list archive)
State New, archived
Headers show
Series Miscellaneous improvements | expand

Commit Message

Ian Jackson Dec. 6, 2021, 6:18 p.m. UTC
This avoids skip etc. being treated as pass.

Signed-off-by: Ian Jackson <iwj@xenproject.org>
---
 tcl/JobDB-Executive.tcl | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/tcl/JobDB-Executive.tcl b/tcl/JobDB-Executive.tcl
index 38248823e..8e0062f59 100644
--- a/tcl/JobDB-Executive.tcl
+++ b/tcl/JobDB-Executive.tcl
@@ -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 "