X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fselenium%2Fselenium.sh;h=4a5c254839f07c47f821b06f31982b7d72459525;hb=0db03df62e8acd435fe3623eb70c5be0136bec64;hp=519b7be9acbc3d42e48fdbe390e89acbaa27ec08;hpb=c29357e7e81b631668c8bd3ccd4b805701380c63;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/selenium/selenium.sh b/tests/selenium/selenium.sh index 519b7be9ac..4a5c254839 100755 --- a/tests/selenium/selenium.sh +++ b/tests/selenium/selenium.sh @@ -1,9 +1,12 @@ #!/usr/bin/env bash set -euo pipefail +# Check the command before running in background so +# that it can actually fail and have a descriptive error +hash chromedriver chromedriver --url-base=/wd/hub --port=4444 & # Make sure it is killed to prevent file descriptors leak function kill_chromedriver() { killall chromedriver > /dev/null } trap kill_chromedriver EXIT -./node_modules/.bin/grunt webdriver:test +npm run selenium-test