From b7413d31388aba35bfdc98396fe828cd8793cdf4 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Mon, 4 May 2015 23:52:34 -0700 Subject: [PATCH] integration helpers: fix the wait for docker join It used to output `[: -eq: unary operator expected` since the grep command didn't give any output, therefore generating a syntax error. Signed-off-by: Andrea Luzzardi --- test/integration/helpers.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/helpers.bash b/test/integration/helpers.bash index 95648a1342..59fe6fd69d 100644 --- a/test/integration/helpers.bash +++ b/test/integration/helpers.bash @@ -100,7 +100,7 @@ function swarm_join() { SWARM_JOIN_PID[$i]=$! ((++i)) done - retry 30 1 [ `docker_swarm info | grep -q "Nodes: $i"` -eq 0 ] + retry 30 1 [ -n $(docker_swarm info | grep -q "Nodes: $i") ] } # Stops the manager.