Commit 2a1458e2 authored by Mikaël Salson's avatar Mikaël Salson Committed by Mathieu Giraud
Browse files

launch_functional_tests: Rename reports to handle several browser versions

If we don't rename them they would be overwritten when launching
several browser versions.
parent 573dc012
rename_reports_in() {
dir="$1"
b="$2"
if [ "$b" == "." ]; then
b="default"
else
b=$(echo "$b" | tr '/' '-')
fi
for file in $1/*.xml; do
filename=$(basename -s .xml $file)
mv $file $dir/$filename-$b.xml
done
}
rm -f test/*.xml
EXIT=0
if [ -z "$FUNCTIONAL_CLIENT_BROWSER_PATH" ]; then
......@@ -13,6 +28,7 @@ for browser in $FUNCTIONAL_CLIENT_BROWSER_PATH; do
if [ $TMP_EXIT -ne 0 ]; then
EXIT=$TMP_EXIT
fi
rename_reports_in test/reports/ "$browser"
mv test/reports/*.xml test/
done
done
......
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