From 54515b2576f86bbd73c42ec5d1928ad0f074365c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Wed, 21 Aug 2024 14:22:32 +0200 Subject: [PATCH] coin: Skip tests based on DoNotRunTestsButCreateTestWorkItem feature Some build configurations might have their own instructions for the test work item, where it doesn't make sense to run the Qt auto tests. We can't use DisableTests for this, as that is hard-coded in coin to skip the entire test work item. Nor can we use DoNotBuildTests, as the test config might not be building anything (depends on another build config, that does build the tests). Nor can we use DoNotRunTests, as that is hard-coded in coin to skip the entire work item. We should probably fix that, but until then let's use a dedicated feature to selectively skip running the tests while still creating the test work item. By using this feature we can for example let the documentation warning configuration build docs and check for new warnings, without also running Qt auto tests in the same test run. Change-Id: I108bece654c811e98ba06e07e4e7b06f6d84c8f4 Reviewed-by: Paul Wicking --- coin/instructions/coin_module_test_template_v2.yaml | 3 +++ coin/instructions/coin_module_test_template_v3.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/coin/instructions/coin_module_test_template_v2.yaml b/coin/instructions/coin_module_test_template_v2.yaml index 6b69763c99b..ae617713951 100644 --- a/coin/instructions/coin_module_test_template_v2.yaml +++ b/coin/instructions/coin_module_test_template_v2.yaml @@ -34,3 +34,6 @@ instructions: - condition: property property: features contains_value: LicenseCheckV2 + - condition: property + property: features + contains_value: DoNotRunTestsButCreateTestWorkItem diff --git a/coin/instructions/coin_module_test_template_v3.yaml b/coin/instructions/coin_module_test_template_v3.yaml index 6f97b448223..e9df6aedfe5 100644 --- a/coin/instructions/coin_module_test_template_v3.yaml +++ b/coin/instructions/coin_module_test_template_v3.yaml @@ -35,3 +35,6 @@ instructions: - condition: property property: features contains_value: LicenseCheckV2 + - condition: property + property: features + contains_value: DoNotRunTestsButCreateTestWorkItem