Make failed tests fail the test

This commit is contained in:
Alexey Sokolov 2020-05-01 08:36:09 +01:00 committed by Markus Frosch
parent 3fd38a6ea8
commit 6c103b0e16
1 changed files with 4 additions and 4 deletions

View File

@ -4,10 +4,10 @@ for t in tests/test*; do
echo $t
file_type=$(file -b $t)
case ${file_type} in
*[Pp]ython*) python ${t} ;;
*Bourne*) bash ${t} ;;
*bash*) bash ${t} ;;
*perl*) perl ${t} ;;
*[Pp]ython*) python ${t} || exit 1 ;;
*Bourne*) bash ${t} || exit 1 ;;
*bash*) bash ${t} || exit 1 ;;
*perl*) perl ${t} || exit 1 ;;
*) echo "Unknown" ;;
esac
echo