]> xenbits.xensource.com Git - osstest.git/commitdiff
sg-run-job: Allow per-job control of test host reuse
authorIan Jackson <iwj@xenproject.org>
Fri, 16 Oct 2020 16:48:04 +0000 (17:48 +0100)
committerIan Jackson <iwj@xenproject.org>
Fri, 16 Oct 2020 16:48:04 +0000 (17:48 +0100)
Signed-off-by: Ian Jackson <iwj@xenproject.org>
sg-run-job

index c64ae02619cd9eaed7c774b7222fca9a7cad1cd7..69ee715b47ecca5ac1bc992e857c8db46fbf1b36 100755 (executable)
@@ -42,10 +42,11 @@ proc per-host-finish {} {
 }
 
 proc run-job {job} {
-    global jobinfo builds flight ok truncate need_xen_hosts
+    global jobinfo builds flight ok reuse_ok truncate need_xen_hosts
     global nested_layers_hosts truncate_globs skip_globs anyskipped
 
     set ok 1
+    set reuse_ok 1
     set truncate 0
     set anyskipped 0
     jobdb::prepare $job
@@ -128,7 +129,7 @@ proc run-job {job} {
        run-ts !broken =                  ts-host-reuse final host
     }
     set reuse {}
-    if {$ok} { lappend reuse --post-test-ok }
+    if {$ok && $reuse_ok} { lappend reuse --post-test-ok }
     eval [list per-host-ts !broken  = { ts-host-reuse final }] $reuse
 
     if {$ok} { setstatus pass                                             }