@@ -209,8 +209,6 @@ proc spawn-ts {iffail testid args} {
set host_testid_suffix {}
foreach arg $testid_args { append host_testid_suffix "/$arg" }
- jobdb::spawn-step-begin $flight $jobinfo(job) $ts stepno
-
if {[string match =* $testid]} {
set testid "$deftestid[string range $testid 1 end]"
} elseif {![string compare $testid *]} {
@@ -218,6 +216,8 @@ proc spawn-ts {iffail testid args} {
append testid (*)
}
regsub {/\@} $testid $host_testid_suffix testid
+
+ jobdb::spawn-step-begin $flight $jobinfo(job) $ts stepno
regsub {\(\*\)$} $testid ($stepno) testid
set detstr "$flight.$jobinfo(job) $ts $real_args"
We are going to want to process the nearly-finished testid. So allocate a stepno at the last possible moment. No overall functional chagne. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> --- sg-run-job | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)