[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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@xxxxxxxxxxxxx>
---
 sg-run-job | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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"
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.