From f05169e457b52d337afaeb4add496cc61fe7b489 Mon Sep 17 00:00:00 2001 From: Marc CARRE Date: Mon, 19 Dec 2016 11:24:36 +0000 Subject: [PATCH] Initialise pids before using it, to avoid potential issues with previously set values. --- test/sanity_check.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/sanity_check.sh b/test/sanity_check.sh index 047d63f6..fca1d85e 100755 --- a/test/sanity_check.sh +++ b/test/sanity_check.sh @@ -16,6 +16,7 @@ function check_ping() { return $status } +pids="" for host in $HOSTS; do for other in $HOSTS; do if [ "$host" != "$other" ]; then @@ -25,7 +26,6 @@ for host in $HOSTS; do done done for pid in $pids; do wait $pid; done -unset pids whitely echo Check we can reach docker @@ -49,6 +49,7 @@ $weave_version EOF } +pids="" for host in $HOSTS; do check_docker $host & pids="$pids $!"