}
proc run-job {job} {
- global jobinfo builds flight ok need_xen_hosts anyfailed
+ global jobinfo builds flight ok truncate need_xen_hosts anyfailed
global nested_layers_hosts
set ok 1
+ set truncate 0
set anyfailed 0
jobdb::prepare $job
run-ts !broken capture-logs ts-logs-capture + host
}
+ if {$truncate} {
+ if {$ok} { setstatus truncated }
+ set ok 0
+ }
+
if {$ok} { setstatus pass }
if {$need_build_host && $ok} { jobdb::preserve-task 90 }
}
proc spawn-ts {iffail testid args} {
- global flight c jobinfo reap_details env
+ global flight c jobinfo reap_details env truncate
if {[file exists abort]} {
jobdb::logputs stdout \
return {imm 0} ;# reap-ts will report failure
}
- iffail-check $iffail 1 iffail_status
+ if {![iffail-check $iffail {!$truncate} iffail_status]} {
+ jobdb::logputs stdout \
+ "truncating - not executing $flight.$jobinfo(job) $args"
+ return {imm 1} ;# reap-ts will report success
+ }
set real_args {}
set adding 1
#---------- per-host infrastructure (non-build tests only) ----------
proc per-host-ts {iffail ident script args} {
- global ok need_xen_hosts flight jobinfo
+ global ok truncate need_xen_hosts flight jobinfo
- if {![iffail-check $iffail {$ok} iffail_status]} return
+ if {![iffail-check $iffail {$ok && !$truncate} iffail_status]} return
set awaitl {}
foreach host $need_xen_hosts {