From 1dd916fec385b0dc03b10baaedb143607ad1737d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Wed, 29 May 2024 11:42:16 +0200 Subject: [PATCH] coin: Ignore CTest exit code for Tart configs, unless module overrides By selectively setting the COIN_CTEST_IGNORE_EXIT_CODE we can allow modules to gradually become significant, without touching qt5.git Change-Id: Ie5b6e683cd755b1cf46886bb30803a56885a11a6 Reviewed-by: Alexandru Croitor --- .../cmake_regular_test_instructions.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/coin/instructions/cmake_regular_test_instructions.yaml b/coin/instructions/cmake_regular_test_instructions.yaml index 4b21c47b72e..cb24aae928b 100644 --- a/coin/instructions/cmake_regular_test_instructions.yaml +++ b/coin/instructions/cmake_regular_test_instructions.yaml @@ -12,4 +12,21 @@ instructions: - type: ChangeDirectory directory: "{{.SourceDir}}_standalone_tests" + # Ignore CTest exit code for Tart configs, unless + # the module declares that it should be significant. + - type: Group + enable_if: + condition: and + conditions: + - condition: property + property: id + contains_value: tart + - condition: runtime + env_var: TART_SIGNIFICANT_TARGET_OSVERSIONS + not_contains_value: "{{.Env.TARGET_OSVERSION_COIN}}" + instructions: + - type: EnvironmentVariable + variableName: COIN_CTEST_IGNORE_EXIT_CODE + variableValue: "1" + - !include "{{qt/qtbase}}/cmake_run_ctest.yaml"