proc run-job {job} {
global jobinfo builds flight ok truncate need_xen_hosts anyfailed
- global nested_layers_hosts
+ global nested_layers_hosts truncate_at
set ok 1
set truncate 0
set anyfailed 0
jobdb::prepare $job
+ set truncate_at [jobdb::read-runvar $flight $job truncate_testid]
+
set nh [need-hosts/$jobinfo(recipe)]
if {![string compare $nh BUILD]} {
set need_xen_hosts {}
}
proc reap-ts {reap} {
+ global truncate truncate_at
+
switch -exact [lindex $reap 0] {
imm { return [lindex $reap 1] }
fh { }
eval jobdb::step-set-status [lrange $details 0 2] $result
jobdb::logputs stdout "finished $detstr $result $emsg"
+ if {![string compare $testid $truncate_at]} {
+ jobdb::logputs stdout "truncating job now as instructed"
+ set truncate 1
+ }
return [expr {![string compare $result pass]}]
}