less noise, and use lower-case var names
This commit is contained in:
1 parent
defcfa5d26
commit
970af56765
1 file changed
+5
-5
+5
-5
@@ -107,11 +107,11 @@ assert_dns_record() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start_suite() {
|
start_suite() {
|
||||||
for HOST in $HOST1 $HOST2; do
|
for host in $HOST1 $HOST2; do
|
||||||
echo "Cleaning up on $HOST: removing all containers and resetting weave"
|
echo "Cleaning up on $host: removing all containers and resetting weave"
|
||||||
CONTAINERS=$(docker -H tcp://$HOST:2375 ps -aq)
|
containers=$(docker_on $host ps -aq 2>/dev/null)
|
||||||
[ -n "$CONTAINERS" ] && docker -H tcp://$HOST:2375 rm -f $CONTAINERS > /dev/null
|
[ -n "$containers" ] && docker_on $host rm -f $containers >/dev/null 2>&1
|
||||||
weave_on $HOST reset > /dev/null
|
weave_on $host reset 2>/dev/null
|
||||||
done
|
done
|
||||||
whitely echo $@
|
whitely echo $@
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user