Commit 9b8e2d9e authored by Emmanuel Promayon's avatar Emmanuel Promayon

FIXED do not interrupt all testing process if one test failed

FATAL_ERROR option in cmake generated a cmake error and stopped ci-test.sh, which returned with
exit value 1. The report to the dashboard was not submitted, resulting in a green dashboard but with
reduced number of tests pass.
The test job should not be interrupted by the first failed test and the dashboard should
show wichh test have failed.
parent a90aec4f
......@@ -22,10 +22,8 @@ macro(ci_log)
file(APPEND ${CAMITK_CI_LOG_FILENAME} "${CI_LOG_UNPARSED_ARGUMENTS}\n")
if (NOT CI_LOG_CI_ERROR)
message(STATUS ${CI_LOG_UNPARSED_ARGUMENTS})
else()
if (CI_LOG_CI_ERROR)
file(APPEND ${CAMITK_CI_LOG_FILENAME} "Fatal error\n")
message(FATAL_ERROR ${CI_LOG_UNPARSED_ARGUMENTS})
endif()
message(STATUS ${CI_LOG_UNPARSED_ARGUMENTS})
endmacro()
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