diff mbox

[OSSTEST,05/11] sg-run-job: Start step a bit later

Message ID 1492531012-14315-6-git-send-email-ian.jackson@eu.citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ian Jackson April 18, 2017, 3:56 p.m. UTC
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(-)
diff mbox

Patch

diff --git a/sg-run-job b/sg-run-job
index 8f7c36f..8cf3b94 100755
--- a/sg-run-job
+++ b/sg-run-job
@@ -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"