Add return value for failed tests.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 27 Sep 2010 10:44:50 +0000 (10:44 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 27 Sep 2010 10:44:50 +0000 (10:44 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4310 38d2e660-2303-0410-9eaa-f027e97ec537

test/run_tests.sh

index 2c6a7ae84af1a2a188689126b335a7a67ad54ff6..14a6fb5e5aca732850a02de2fc045b268bddd32a 100755 (executable)
@@ -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