diff mbox series

[OSSTEST,22/82] sg-run-job: Use +! in per-host-ts implementation

Message ID 20201007180024.7932-23-iwj@xenproject.org (mailing list archive)
State New, archived
Headers show
Series Reuse test hosts | expand

Commit Message

Ian Jackson Oct. 7, 2020, 5:59 p.m. UTC
From: Ian Jackson <ian.jackson@eu.citrix.com>

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 | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/sg-run-job b/sg-run-job
index 3ca725e7..3f44cae7 100755
--- a/sg-run-job
+++ b/sg-run-job
@@ -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]
     }