Commit 87ff8588 authored by Antoine Regimbeau's avatar Antoine Regimbeau

CI: allow job to fail if test is failing

parent fd98f0f7
Pipeline #430 failed with stage
in 76 minutes and 40 seconds
......@@ -84,6 +84,14 @@ if ( NOT _build_rv EQUAL 0 )
message( SEND_ERROR "An error occurs during ctest_build.")
endif()
ctest_test(PARALLEL_LEVEL 8)
ctest_test(PARALLEL_LEVEL 8
RETURN_VALUE _test_rv
CAPTURE_CMAKE_ERROR _test_error
)
if ( NOT _test_rv EQUAL 0 )
ctest_submit()
message( SEND_ERROR "An error occurs during ctest_test.")
endif()
ctest_submit()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment