]> xenbits.xensource.com Git - osstest.git/commitdiff
sg-run-job: fix logs capture logic flight-16195
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 14 Feb 2013 15:49:08 +0000 (15:49 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 14 Feb 2013 15:49:08 +0000 (15:49 +0000)
sg-run-job

index 2cde8c1d622b0512cdb7bf4eef34f8c099cf95b9..0124223fef9b7bf4ff7483ab8452ffcb3e437fd4 100755 (executable)
@@ -58,9 +58,12 @@ proc run-job {job} {
     if {$ok} { catching-otherwise fail      run-job/$jobinfo(recipe)      }
     per-host-ts .       =                {ts-leak-check check}
 
-    per-host-ts !broken capture-logs/@(*) ts-logs-capture
-    if {$anyfailed && $need_build_host} {
-        run-ts broken   *                 ts-logs-capture
+    if {!$need_build_host} {
+        per-host-ts !broken capture-logs/@(*) ts-logs-capture
+    } else {
+        if {$anyfailed} {
+            run-ts  !broken capture-logs      ts-logs-capture + host
+        }
     }
 
     if {$ok} { setstatus pass                                             }