Fix test 5.14 to not always pass when multiple ports are published.

Signed-off-by: Zvi "Viz" Effron <zeffron@riotgames.com>
This commit is contained in:
Zvi "Viz" Effron 2015-06-15 11:26:13 -07:00
parent 0e7967e9b0
commit 3616f15cba

View file

@ -319,7 +319,7 @@ else
fail=0 fail=0
for c in $containers; do for c in $containers; do
ip=$(docker port "$c" | awk '{print $3}' | cut -d ':' -f1) for ip in $(docker port "$c" | awk '{print $3}' | cut -d ':' -f1); do
if [ "$ip" = "0.0.0.0" ]; then if [ "$ip" = "0.0.0.0" ]; then
# If it's the first container, fail the test # If it's the first container, fail the test
if [ $fail -eq 0 ]; then if [ $fail -eq 0 ]; then
@ -331,6 +331,7 @@ else
fi fi
fi fi
done done
done
# We went through all the containers and found no ports bound to 0.0.0.0 # We went through all the containers and found no ports bound to 0.0.0.0
if [ $fail -eq 0 ]; then if [ $fail -eq 0 ]; then
pass "$check_5_14" pass "$check_5_14"