From: batt Date: Mon, 27 Sep 2010 10:44:50 +0000 (+0000) Subject: Add return value for failed tests. X-Git-Tag: 2.6.0~91 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=94b837d82ecd3893d9f0ab401674cf7607148eca;p=bertos.git Add return value for failed tests. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4310 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/test/run_tests.sh b/test/run_tests.sh index 2c6a7ae8..14a6fb5e 100755 --- a/test/run_tests.sh +++ b/test/run_tests.sh @@ -101,12 +101,15 @@ for src in $TESTS; do [ $VERBOSE -gt 0 ] && echo "Running $name..." if ! $exe 2>&1 | tee >$runout $testdir/$name.out; then echo "FAILED [RUN]: $name" + exit 2 fi else echo "FAILED [BUILD]: $name" + exit 3 fi else echo "FAILED [PREPARING]: $name" + exit 4 fi done