commit 3979cc8a34f47e2778c6adc31e75ebe3f59f4465 parent c291795bf490eecbec47e85097012c4905ca9a9b Author: Marcello Stanisci <marcello.stanisci@inria.fr> Date: Thu, 10 Nov 2016 11:07:24 +0100 removing .sh from deployed shell scripts Diffstat:
| A | docker/selenium/launch_chrome_container | | | 3 | +++ |
| A | docker/selenium/launch_selenium_test | | | 27 | +++++++++++++++++++++++++++ |
2 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/docker/selenium/launch_chrome_container b/docker/selenium/launch_chrome_container @@ -0,0 +1,3 @@ +#!/bin/bash + +docker run --name big_heap -e JAVA_OPTS=-Xmx1g -d -p 4444:4444 selenium/standalone-chrome-debug diff --git a/docker/selenium/launch_selenium_test b/docker/selenium/launch_selenium_test @@ -0,0 +1,27 @@ +#!/bin/bash + +# Takes only the docker-machine's IP address, assuming that the +# chrome-docker service runs on port 4444 + +# FIXME use getopt +TEMP=`getopt -o r: --long docker-ip: -n 'launch_selenium_test.sh' -- "$@"` +eval set -- "$TEMP" + +if test "$1" != '--docker-ip'; then + IP=$(docker-machine ip) +else + IP=$2 +fi + + +# update wallet +(cd $HOME/wallet-webex && git pull && ./configure && make) + +eval $(docker-machine env) +# Yes, assume it's already running.. +docker restart big_heap + +# call python3 selenium script +python3 $HOME/wallet-webex/selenium/test.py \ + --ext-unpacked $HOME/wallet-webex \ + --remote http://$IP:4444/wd/hub