diff --git a/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml b/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml index 81c35dd2273..095d8993340 100644 --- a/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml +++ b/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml @@ -52,19 +52,22 @@ instructions: property: host.os equals_value: Windows + # Keep the testrun quiet for ASAN testruns, since there are FAILs happening all over the place... - type: EnvironmentVariable variableName: CTEST_ARGS variableValue: "-V" - # Keep the testrun quiet for ASAN testruns, since there are FAILs happening all over the place disable_if: condition: property property: features contains_value: UseAddressSanitizer - - # Always print the output from a failing test, even when ctest is not in verbose mode + # ...and only print the output from a failing test, i.e. test with ASAN errors. - type: EnvironmentVariable variableName: CTEST_OUTPUT_ON_FAILURE variableValue: "1" + enable_if: + condition: property + property: features + contains_value: UseAddressSanitizer - type: AppendToEnvironmentVariable variableName: CTEST_ARGS