diff options
author | Simon Glass <sjg@chromium.org> | 2017-08-19 11:17:56 -0600 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-08-21 10:00:44 +1000 |
commit | b9eba92ea50f4444a49eab87942411f1f83df92a (patch) | |
tree | b38c3c32966088f382520058a9ce19ca0ba58e3d | |
parent | 155faf6cc2097422b647b8e12daf8a673c852121 (diff) | |
download | dtc-b9eba92ea50f4444a49eab87942411f1f83df92a.zip dtc-b9eba92ea50f4444a49eab87942411f1f83df92a.tar.gz dtc-b9eba92ea50f4444a49eab87942411f1f83df92a.tar.bz2 |
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-x | tests/run_tests.sh | 1 |
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 |