summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-08-19 11:17:56 -0600
committerDavid Gibson <david@gibson.dropbear.id.au>2017-08-21 10:00:44 +1000
commitb9eba92ea50f4444a49eab87942411f1f83df92a (patch)
treeb38c3c32966088f382520058a9ce19ca0ba58e3d
parent155faf6cc2097422b647b8e12daf8a673c852121 (diff)
downloaddevice-tree-compiler-b9eba92ea50f4444a49eab87942411f1f83df92a.tar.gz
tests: Return a failure code when any tests fail
At present 'make check' succeeds even if some tests fail. Adjust this so that we can use things like 'git bisect run make check' to find a failure. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rwxr-xr-xtests/run_tests.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index 3bc5b41..fa7b2f7 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -900,3 +900,4 @@ fi
echo "* Strange test result: $tot_strange"
echo "**********"
+[ "$tot_tests" -eq "$tot_pass" ] || exit 1