diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-05-20 15:08:20 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-05-20 15:08:20 +0200 |
commit | 6102d95f6dac2ef2011b7fac779511dc39721e7c (patch) | |
tree | 1d3422b08d6205d66d3d1d105c44b582eb44da2d /docker/selenium/launch_selenium_test.sh | |
parent | bb28b5259f98266c1d334126e807fda4c9985a7a (diff) | |
download | deployment-6102d95f6dac2ef2011b7fac779511dc39721e7c.tar.gz deployment-6102d95f6dac2ef2011b7fac779511dc39721e7c.tar.bz2 deployment-6102d95f6dac2ef2011b7fac779511dc39721e7c.zip |
find out docker IP automatically
Diffstat (limited to 'docker/selenium/launch_selenium_test.sh')
-rwxr-xr-x | docker/selenium/launch_selenium_test.sh | 9 |
1 files changed, 4 insertions, 5 deletions
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) |