From 80e1dfee1fdbba9c251bbb657315aba03c8b74e2 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Tue, 14 Aug 2018 02:40:03 +0200 Subject: [PATCH] ci: fail when tests fail Downside is that failed test will not push artifacts --- cmake/ctest/build.ctest | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/ctest/build.ctest b/cmake/ctest/build.ctest index f1847c17..b75e5b3c 100644 --- a/cmake/ctest/build.ctest +++ b/cmake/ctest/build.ctest @@ -233,9 +233,9 @@ if(_NB_BUILD_ERRORS) endif() if(_TEST_RESULT) - list(APPEND WARNING_MESSAGES "Test failure detected!") + list(APPEND ERROR_MESSAGES "Test failure detected!") endif() if(_SUBMIT_RESULT) - list(APPEND ERROR_MESSAGES "Test submission failure detected!") + list(APPEND WARNING_MESSAGES "Test submission failure detected!") endif()