[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [OSSTEST PATCH 03/13] sg-run-job: Support toggling `adding' by repeating `+'



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 <Ian.Jackson@xxxxxxxxxxxxx>
> ---
>  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



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.