summaryrefslogtreecommitdiff
path: root/docker/selenium/launch_selenium_test.sh
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2016-11-13 02:12:18 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2016-11-13 02:12:18 +0100
commita224d53923e76e17e10ab31309d11632ebe8b5ba (patch)
tree2f8a024550e0a4b3ddd7b20bc9d7c6d62d4d9460 /docker/selenium/launch_selenium_test.sh
parent9196188cb98a64bde615a2f2099e1ac8fa40e384 (diff)
downloaddeployment-a224d53923e76e17e10ab31309d11632ebe8b5ba.tar.gz
deployment-a224d53923e76e17e10ab31309d11632ebe8b5ba.tar.bz2
deployment-a224d53923e76e17e10ab31309d11632ebe8b5ba.zip
pack extension via xvfb'd chromium before running selenium test
Diffstat (limited to 'docker/selenium/launch_selenium_test.sh')
-rwxr-xr-xdocker/selenium/launch_selenium_test.sh31
1 files changed, 11 insertions, 20 deletions
diff --git a/docker/selenium/launch_selenium_test.sh b/docker/selenium/launch_selenium_test.sh
index 0ae6709..6bed99a 100755
--- a/docker/selenium/launch_selenium_test.sh
+++ b/docker/selenium/launch_selenium_test.sh
@@ -1,27 +1,18 @@
#!/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)
+# update wallet and pack extension
+(cd $HOME/wallet-webex \
+ && git pull \
+ && ./configure \
+ && make \
+ && xvfb-run chromium --pack-extension $HOME/wallet-webex)
eval $(docker-machine env)
-# Yes, assume it's already running..
-docker restart big_heap
+
+# Get fresh image
+docker restart container_chrome
# call python3 selenium script
python3 $HOME/wallet-webex/selenium/test.py \
- --ext-unpacked $HOME/wallet-webex \
- --remote http://$IP:4444/wd/hub
+ --ext=$HOME/ext.crx \
+ --remote=http://$IP:4444/wd/hub