From: Ian Jackson Subject: [OSSTEST PATCH 05/10] sg-run-job: testid generation: Move spawn-step-begin Date: Fri, 6 Feb 2015 19:17:50 +0000 Message-ID: <1423250275-20872-6-git-send-email-ian.jackson@eu.citrix.com> References: <1423250275-20872-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YJoPl-0000WL-FA for xen-devel@lists.xenproject.org; Fri, 06 Feb 2015 19:18:05 +0000 In-Reply-To: <1423250275-20872-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org 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 --- sg-run-job | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sg-run-job b/sg-run-job index 2cf810a..68d6c65 100755 --- a/sg-run-job +++ b/sg-run-job @@ -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 *]} { -- 1.7.10.4