Files
blockly/scripts/test_setup.sh
shirletan 7a2c01e1cf Work around timing issue with travis osx issue (#1092)
* add more wait time for test setup

* increase selenium wait time

* add more wait
2017-05-09 16:39:39 -07:00

24 lines
413 B
Bash
Executable File

#!/bin/bash
EXIT_STATUS=0
function check_command {
"$@"
local STATUS=$?
if [ $STATUS -ne 0 ]; then
echo "error with $1 ($STATUS)" >&2
EXIT_STATUS=$STATUS
fi
}
check_command scripts/get_geckdriver.sh
sleep 5
check_command scripts/get_selenium.sh
sleep 5
check_command scripts/get_chromedriver.sh
sleep 10
check_command scripts/selenium_connect.sh
sleep 10
exit $EXIT_STATUS