summaryrefslogtreecommitdiff
path: root/selenium/launch_selenium_test
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-02-15 17:24:26 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2017-02-15 17:24:26 +0100
commit74bb638f83e84f648bb300d01cd09a4f047bb568 (patch)
tree9db63cc2767f4d5813ee73f2494e0a39a7f3dd22 /selenium/launch_selenium_test
parentd5724e646ba58ec27d2ea17ef4b82ad1357fba54 (diff)
downloaddeployment-74bb638f83e84f648bb300d01cd09a4f047bb568.tar.gz
deployment-74bb638f83e84f648bb300d01cd09a4f047bb568.tar.bz2
deployment-74bb638f83e84f648bb300d01cd09a4f047bb568.zip
Fix selenium launcher.
Diffstat (limited to 'selenium/launch_selenium_test')
-rwxr-xr-xselenium/launch_selenium_test23
1 files changed, 15 insertions, 8 deletions
diff --git a/selenium/launch_selenium_test b/selenium/launch_selenium_test
index 750505e..96f8e20 100755
--- a/selenium/launch_selenium_test
+++ b/selenium/launch_selenium_test
@@ -1,11 +1,18 @@
#!/bin/bash
-# update wallet and pack extension
-(cd $HOME/wallet-webex \
- && git pull \
- && ./configure \
- && make \
- && xvfb-run chromium --pack-extension $HOME/wallet-webex)
+set -eu
+
+cd $HOME/wallet-webex
+git clean -fdx
+
+git fetch
+# reset to updated upstream branch, but only if we're tracking a branch
+branch=$(git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null || echo HEAD)
+git reset --hard "$branch"
+
+git submodule update --remote
+
+tsc # use 'make' once yarn problems art fixed.
eval $(docker-machine env)
@@ -14,10 +21,10 @@ if docker restart container_chrome > /dev/null;
then echo "Chrome container succesfully restarted";
fi
-# Give time to container to get fully operational
+# Give time for the container to get fully operational
sleep 2
# call python3 selenium script
python3 $HOME/wallet-webex/selenium/withdraw_buy.py \
- --ext=$HOME/ext.crx \
+ --ext-unpacked=$HOME/wallet-webex \
--remote=http://$(docker-machine ip):4444/wd/hub