From 86c7a32ccc6000af424d3721393c33d263809750 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Fri, 25 Dec 2020 23:36:39 -0800 Subject: [PATCH] We weren't actually reporting out failed tests as an exit code when running simulator tests --- tests/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index bc84a06e..b6ea71c4 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -34,8 +34,11 @@ all: ${TESTS} run-all run-all: ${TESTS} @for test in ${TESTS}; do \ - ${MAKE} -s -f ${top_dir}/testing/makefiles/testcase.mk -C $${test} testcase=$${test} run; \ - done || exit 1 + ${MAKE} -s -f ${top_dir}/testing/makefiles/testcase.mk -C $${test} testcase=$${test} run || ERROR=$$?; \ + done; \ + if [ -n $${ERROR} ]; then exit $${ERROR}; fi + + cmake-clean: rm -rf "${top_dir}"/testing/googletest/build/*