From: Kees Jongenburger Date: Sat, 20 Apr 2013 07:26:18 +0000 (+0200) Subject: run script:return 1 upon test failure. X-Git-Tag: v3.3.0~1016 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=fcb66ed1b593acea8e49c088ce6f1211510b2123;p=minix.git run script:return 1 upon test failure. Change-Id: If3c9d636a04da7f7b4098b58d29c492c664dab1a --- diff --git a/test/run b/test/run index 7abad9d53..759b47623 100755 --- a/test/run +++ b/test/run @@ -59,6 +59,13 @@ for i in `echo $tests`; do fi done +# +if [ $tests_no -eq 0 ] +then + echo "No test binaries found. did you compile?" + exit 1 +fi + if [ "$tests" = "$alltests" ] then # Print test welcome message clear @@ -105,4 +112,10 @@ then echo " " fi fi +# if any test failed return an error +if [ $failed -gt 0 ] +then + exit 1 +fi + # echo " "