[CI] mv submit step before eventual error report
@@ -156,9 +156,7 @@ endif()
ctest_configure()
ctest_build()
ctest_test(PARALLEL_LEVEL ${NP} RETURN_VALUE TEST_RETURN_VAL)
-if(NOT TEST_RETURN_VAL EQUAL 0)
-message(FATAL_ERROR " *** test failure *** ")
-endif()
+
if (WITH_MEMCHECK AND CTEST_COVERAGE_COMMAND)
ctest_coverage()
endif (WITH_MEMCHECK AND CTEST_COVERAGE_COMMAND)
@@ -173,4 +171,6 @@ ctest_submit(RETURN_VALUE SUBMIT_RETURN_VAL)
if(NOT SUBMIT_RETURN_VAL EQUAL 0)
message(WARNING " *** submission failure *** ")
endif()
-
+if(NOT TEST_RETURN_VAL EQUAL 0)
+message(FATAL_ERROR " *** test failure *** ")
+endif()
