#!/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) # call python3 selenium script python3 $HOME/wallet-webex/selenium/test.py \ --ext-unpacked $HOME/wallet-webex.crx \ --remote http://$IP:4444/wd/hub