Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit 3b0c9613 authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Mikaël Salson

tests/launch_functional_tests: select browsers from environment variable or...

tests/launch_functional_tests: select browsers from environment variable or from 'tested-browser' file

Partially revert 02ca0a24.
We want both to agnostically use 'launch_functional_tests', but also to be able to follow in a versioned file
the supported browsers.
parent e8047a56
# sh launch_functional_tests functional/test_*rb
if [ -z "$FUNCTIONAL_CLIENT_BROWSER_PATH" ]; then
FUNCTIONAL_CLIENT_BROWSER_PATH="."
fi
if [ "$1" = "--browsers-from-file" ]
then
shift
BROWSER_LIST=`sed "s#^#$FUNCTIONAL_CLIENT_BROWSER_DIR#" ./tested-browsers`
else
BROWSER_LIST=$FUNCTIONAL_CLIENT_BROWSER_PATH
fi
FUNCTIONAL_TESTS=$*
BROWSER_LIST=./tested-browsers
rename_reports_in() {
dir="$1"
......@@ -19,17 +30,17 @@ rename_reports_in() {
rm -f test/*.xml
EXIT=0
if [ -z "$FUNCTIONAL_CLIENT_BROWSER_PATH" ]; then
FUNCTIONAL_CLIENT_BROWSER_PATH="."
fi
cat $BROWSER_LIST | while read browser ; do
for browser in $BROWSER_LIST; do
echo
echo "\033[1m\033[33m===== Testing browser: " $browser "\033[0m"
echo
for file in $FUNCTIONAL_TESTS; do
echo "\033[34m===" $file "\033[0m"
if [ ${#browser} -gt 1 ]; then
export WATIR_BROWSER_PATH="$FUNCTIONAL_CLIENT_BROWSER_PATH/$browser"
export WATIR_BROWSER_PATH="$browser"
fi
ruby -I functional $file;
TMP_EXIT=$?
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment