|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 06/10] sg-run-job: testid generation: Introduce $testid_args
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@xxxxxxxxxxxxx>
---
sg-run-job | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/sg-run-job b/sg-run-job
index 68d6c65..5c192ab 100755
--- a/sg-run-job
+++ b/sg-run-job
@@ -117,19 +117,22 @@ proc spawn-ts {iffail testid ts args} {
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]} {
--
1.7.10.4
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |