From: Ian Campbell Subject: Re: [OSSTEST PATCH 03/13] sg-run-job: Support toggling `adding' by repeating `+' Date: Wed, 16 Jul 2014 10:17:37 +0100 Message-ID: <1405502257.7019.6.camel@kazak.uk.xensource.com> References: <1405437747-12753-1-git-send-email-ian.jackson@eu.citrix.com> <1405437747-12753-4-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.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X7LLJ-0001CQ-KK for xen-devel@lists.xenproject.org; Wed, 16 Jul 2014 09:17:41 +0000 In-Reply-To: <1405437747-12753-4-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: Ian Jackson Cc: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Tue, 2014-07-15 at 16:22 +0100, Ian Jackson wrote: > Specifying `+' as an argument to spawn-ts suppresses the automatic > addition of subsequent arguments to the testid. Make it possible to > toggle this by repeating `+'. So that's what that syntax was doing. I had been boggling over that! > > Signed-off-by: Ian Jackson > --- > sg-run-job | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sg-run-job b/sg-run-job > index e903869..b02a755 100755 > --- a/sg-run-job > +++ b/sg-run-job > @@ -122,7 +122,7 @@ proc spawn-ts {iffail testid ts args} { > set host_testid_suffix {} > foreach arg $args { > if {![string compare + $arg]} { > - set adding 0 > + set adding [expr {!$adding}] > continue > } > lappend real_args $arg