From e539c1308f88a7ea36b157224f5d2674910f23e4 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Mon, 19 Dec 2022 10:00:34 -0600 Subject: [PATCH] CMake: return a non-zero exit code when quick tests fail --- tests/run_quick_tests.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/run_quick_tests.cmake b/tests/run_quick_tests.cmake index e64b84059a..4f79df5969 100644 --- a/tests/run_quick_tests.cmake +++ b/tests/run_quick_tests.cmake @@ -95,4 +95,7 @@ recent version or use a different MPI library like MPICH.\n" ) endif() endforeach() + + # ensure that this script exits with a non-zero exit code + message(FATAL_ERROR "quick tests failed") endif() -- 2.39.5