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

CI: allow job to fail if test is failing

No related merge requests found
Showing with 9 additions and 1 deletion
+9 -1
...@@ -84,6 +84,14 @@ if ( NOT _build_rv EQUAL 0 ) ...@@ -84,6 +84,14 @@ if ( NOT _build_rv EQUAL 0 )
message( SEND_ERROR "An error occurs during ctest_build.") message( SEND_ERROR "An error occurs during ctest_build.")
endif() 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() ctest_submit()
Supports Markdown
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