From ba1eec62a864428e4486b1e15f41ff06fc8f60d4 Mon Sep 17 00:00:00 2001 From: Dimitrios Apostolou Date: Wed, 18 Oct 2023 15:45:44 +0200 Subject: [PATCH] Keep the testrun quiet for ASAN testruns MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is purely cosmetic, to avoid confusion when reading the logs and find many "FAIL!" strings all over the place. The ASAN testrun only cares for "ERROR: AddressSanitizer" type errors, and tests pass even if they print "FAIL!" (that is taken care by sanitizer-testrunner.py). Fixes: QTQAINFRA-5896 Pick-to: 6.6 6.5 Change-Id: Ib7a5fb2c3ee56581db20efb4dd7cf24a053d5c13 Reviewed-by: Qt CI Bot Reviewed-by: Tor Arne Vestbø --- coin/instructions/cmake_run_ctest_enforce_exit_code.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml b/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml index e3017a40050..b68792f8903 100644 --- a/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml +++ b/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml @@ -51,9 +51,16 @@ instructions: condition: property property: host.os equals_value: Windows + - 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 + - type: AppendToEnvironmentVariable variableName: CTEST_ARGS variableValue: " --stop-on-failure"