tests: use a common macro to obtain docker image IP address

This commit is contained in:
Nikos Mavrogiannopoulos
2015-12-01 17:47:10 +01:00
parent 34ac6bce56
commit 446baaf95a
9 changed files with 9 additions and 9 deletions

View File

@@ -43,7 +43,7 @@ echo "ocserv image was run"
#wait for ocserv to server
sleep 5
IP=`$DOCKER inspect $IMAGE_NAME | grep IPAddress | cut -d '"' -f 4`
get_ip
if test -z "$IP";then
echo "Detected IP is null!"
stop

View File

@@ -56,7 +56,7 @@ echo "ocserv image was run"
#wait for ocserv to server
sleep 5
IP=`$DOCKER inspect $IMAGE_NAME | grep IPAddress | cut -d '"' -f 4`
get_ip
if test -z "$IP";then
echo "Detected IP is null!"
$DOCKER inspect $IMAGE_NAME

View File

@@ -43,7 +43,7 @@ echo "ocserv image was run"
#wait for ocserv to server
sleep 5
IP=`$DOCKER inspect $IMAGE_NAME | grep IPAddress | cut -d '"' -f 4`
get_ip
if test -z "$IP";then
echo "Detected IP is null!"
stop

View File

@@ -43,7 +43,7 @@ echo "ocserv image was run"
#wait for ocserv to server
sleep 5
IP=`$DOCKER inspect $IMAGE_NAME | grep IPAddress | cut -d '"' -f 4`
get_ip
if test -z "$IP";then
echo "Detected IP is null!"
stop

View File

@@ -43,7 +43,7 @@ echo "ocserv image was run"
#wait for ocserv to server
sleep 5
IP=`$DOCKER inspect $IMAGE_NAME | grep IPAddress | cut -d '"' -f 4`
get_ip
if test -z "$IP";then
echo "Detected IP is null!"
stop

View File

@@ -43,7 +43,7 @@ echo "ocserv image was run"
#wait for ocserv to server
sleep 5
IP=`$DOCKER inspect $IMAGE_NAME | grep IPAddress | cut -d '"' -f 4`
get_ip
if test -z "$IP";then
echo "Detected IP is null!"
stop

View File

@@ -43,7 +43,7 @@ echo "ocserv image was run"
#wait for ocserv to server
sleep 5
IP=`$DOCKER inspect $IMAGE_NAME | grep IPAddress | cut -d '"' -f 4`
get_ip
if test -z "$IP";then
echo "Detected IP is null!"
stop

View File

@@ -45,7 +45,7 @@ echo "ocserv image was run"
#wait for ocserv to server
sleep 5
IP=`$DOCKER inspect $IMAGE_NAME | grep IPAddress | cut -d '"' -f 4`
get_ip
if test -z "$IP";then
echo "Detected IP is null!"
stop

View File

@@ -42,7 +42,7 @@ fi
#wait for ocserv to server
sleep 5
IP=`$DOCKER inspect test_unix | grep IPAddress | cut -d '"' -f 4`
get_ip
if test -z "$IP";then
echo "Detected IP is null!"
stop