Commit 174a6213 authored by Mikaël Salson's avatar Mikaël Salson

launch_functional_tests: Make script fails when some tests fail

The script was always terminating with a 0 error code
hiding the fact that some tests may have failed.
parent 6a5b8235
rm -f test/*.xml
EXIT=0
for file in test_*rb; do
ruby $file;
TMP_EXIT=$?
if [ $TMP_EXIT -ne 0 ]; then
EXIT=$TMP_EXIT
fi
mv test/reports/*.xml test/
done
\ No newline at end of file
done
exit $EXIT
\ No newline at end of file
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