]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
sg-run-job: testid generation: Move spawn-step-begin
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 6 Feb 2015 15:24:31 +0000 (15:24 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 13 Feb 2015 14:01:46 +0000 (14:01 +0000)
Run spawn-step-begin until after the loop over $args, and after the
computation of the basic deftestid.

No functional change: nothing in that loop looks at stepno.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
sg-run-job

index 2cf810aa3d15329aedfb4a0610825ae9848b972c..68d6c65268bb4a0344e4ec957a9ffbd9f9e3a258 100755 (executable)
@@ -115,8 +115,6 @@ proc spawn-ts {iffail testid ts args} {
 
     if {![string compare . $iffail]} { set iffail fail }
 
-    jobdb::spawn-step-begin $flight $jobinfo(job) $ts stepno
-
     set real_args {}
     set adding 1
     set host_testid_suffix {}
@@ -132,6 +130,8 @@ proc spawn-ts {iffail testid ts args} {
     regsub {^ts-} $ts {} deftestid
     append deftestid /@
 
+    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 *]} {