From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: [OSSTEST PATCH 03/13] sg-run-job: Support toggling `adding' by repeating `+' Date: Tue, 15 Jul 2014 16:22:17 +0100 Message-ID: <1405437747-12753-4-git-send-email-ian.jackson@eu.citrix.com> References: <1405437747-12753-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.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X74Z0-0005kr-Cg for xen-devel@lists.xenproject.org; Tue, 15 Jul 2014 15:22:42 +0000 In-Reply-To: <1405437747-12753-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 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 `+'. 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 -- 1.7.10.4