From 6c103b0e16cf52bd04ea50c3f3225d075c1b84b0 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Fri, 1 May 2020 08:36:09 +0100 Subject: [PATCH] Make failed tests fail the test --- run_tests | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/run_tests b/run_tests index 3bf51e4a..cc7fb56a 100755 --- a/run_tests +++ b/run_tests @@ -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