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 <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2015-05-04 23:52:34 -07:00
parent 389da48e5e
commit b7413d3138
1 changed files with 1 additions and 1 deletions

View File

@ -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.