]> xenbits.xensource.com Git - people/dariof/osstest.git/commitdiff
sg-run-job: Support toggling `adding' by repeating `+'
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 14 Jul 2014 12:07:30 +0000 (13:07 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 16 Jul 2014 10:22:42 +0000 (11:22 +0100)
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 <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
sg-run-job

index e903869c7cffc99e8a6004c111ad1681dbf37070..b02a7551972b12a43db99b3f36cd4c6f9a578112 100755 (executable)
@@ -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