Rather than accumulating into host_testid_suffix directly, accumulate
into a list testid_args first.
No functional change: all we do is defer the construction of
host_testid_suffix, which is not used until later in this function.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
set real_args {}
set adding 1
- set host_testid_suffix {}
+ set testid_args {}
foreach arg $args {
if {![string compare + $arg]} {
set adding [expr {!$adding}]
continue
}
lappend real_args $arg
- if {$adding} { append host_testid_suffix "/$arg" }
+ if {$adding} { lappend testid_args $arg }
}
regsub {^ts-} $ts {} deftestid
append deftestid /@
+ 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]} {