Make failed tests fail the test
This commit is contained in:
parent
3fd38a6ea8
commit
6c103b0e16
@ -4,10 +4,10 @@ for t in tests/test*; do
|
|||||||
echo $t
|
echo $t
|
||||||
file_type=$(file -b $t)
|
file_type=$(file -b $t)
|
||||||
case ${file_type} in
|
case ${file_type} in
|
||||||
*[Pp]ython*) python ${t} ;;
|
*[Pp]ython*) python ${t} || exit 1 ;;
|
||||||
*Bourne*) bash ${t} ;;
|
*Bourne*) bash ${t} || exit 1 ;;
|
||||||
*bash*) bash ${t} ;;
|
*bash*) bash ${t} || exit 1 ;;
|
||||||
*perl*) perl ${t} ;;
|
*perl*) perl ${t} || exit 1 ;;
|
||||||
*) echo "Unknown" ;;
|
*) echo "Unknown" ;;
|
||||||
esac
|
esac
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user