}
sub substep_start ($;$) {
- my ($testid,$script) = @_;
+ my ($testid,$logfile) = @_;
complete_testid(\$testid);
- $mjobdb->step_start($testid,undef,$script);
+ $mjobdb->step_start($testid,$logfile);
}
sub substep_finish ($$) {
}
sub substep_eval ($$;$) {
- # substep_eval(TESTID, [SCRIPTNAME], sub { ... });
+ # substep_eval(TESTID, [LOGFILE], sub { ... });
my $fn = pop @_;
- my ($testid,$script) = @_;
- substep_start($testid,$script);
+ my ($testid,$logfile) = @_;
+ substep_start($testid,$logfile);
eval { $fn->(); };
if (length $@) {
logm("substep ($testid) failed: $@");
my $key = $1;
my $substep = "examine-serial/$key";
my $ci = { K => $key, C => $r{$rv}, Substep => $substep };
- substep_start($ci->{Substep}, 'ts-examine-serial-post');
+ substep_start($ci->{Substep});
push @cookies, $ci;
}
}
my $ret;
my $osstest_result;
- substep_start($tid, $cmd);
+ substep_start($tid);
if (!eval {
$output = target_cmd_output_root($ho, <<END, 600);