From c348b2d6b263b1c90717286061327988cda3fff9 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 14 Jul 2014 13:07:30 +0100 Subject: [PATCH] sg-run-job: Support toggling `adding' by repeating `+' 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 Acked-by: Ian Campbell --- 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 -- 2.39.5