From b9eba92ea50f4444a49eab87942411f1f83df92a Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 19 Aug 2017 11:17:56 -0600 Subject: [PATCH] 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 Signed-off-by: David Gibson --- tests/run_tests.sh | 1 + 1 file changed, 1 insertion(+) 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