From 6102d95f6dac2ef2011b7fac779511dc39721e7c Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 20 May 2016 15:08:20 +0200 Subject: find out docker IP automatically --- docker/selenium/launch_selenium_test.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'docker') diff --git a/docker/selenium/launch_selenium_test.sh b/docker/selenium/launch_selenium_test.sh index 7e87069..ac30ecb 100755 --- a/docker/selenium/launch_selenium_test.sh +++ b/docker/selenium/launch_selenium_test.sh @@ -7,13 +7,12 @@ TEMP=`getopt -o r: --long docker-ip: -n 'launch_selenium_test.sh' -- "$@"` eval set -- "$TEMP" -if test $1 != '--docker-ip' - then - echo '--docker-ip argument is mandatory, exiting..' - exit 1 +if test "$1" != '--docker-ip'; then + IP=$(docker-machine ip) +else + IP=$2 fi -IP=$2 # update wallet (cd $HOME/wallet-webex && git pull && tsc) -- cgit v1.2.3