From 3979cc8a34f47e2778c6adc31e75ebe3f59f4465 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Thu, 10 Nov 2016 11:07:24 +0100 Subject: removing .sh from deployed shell scripts --- docker/selenium/launch_selenium_test | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 docker/selenium/launch_selenium_test (limited to 'docker/selenium/launch_selenium_test') diff --git a/docker/selenium/launch_selenium_test b/docker/selenium/launch_selenium_test new file mode 100755 index 0000000..0ae6709 --- /dev/null +++ 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 -- cgit v1.2.3