]> xenbits.xensource.com Git - osstest.git/commitdiff
sg-run-job: Use +! in per-host-ts implementation
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 22 May 2019 15:34:11 +0000 (16:34 +0100)
committerIan Jackson <iwj@xenproject.org>
Fri, 2 Oct 2020 15:49:13 +0000 (16:49 +0100)
This makes this slightly clearer, even more so in a moment.

No functional change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
sg-run-job

index 3ca725e793dc317d3cae41b4943da6a75ad73780..3f44cae7369dfe5590617415c4063b4333a9262d 100755 (executable)
@@ -458,11 +458,10 @@ proc per-host-ts {iffail ident script args} {
     set awaitl {}
     foreach host $need_xen_hosts {
         set hostargs {}
-        if {![string compare $host host]} {
-            lappend hostargs + $host
-        } else {
-            lappend hostargs $host +
-        }
+       if {[string compare $host host]} {
+           lappend hostargs +! $host
+       }
+       lappend hostargs + $host
         lappend awaitl [eval spawn-ts $iffail $ident $script $hostargs $args]
     }