summaryrefslogtreecommitdiffstats
path: root/coin
diff options
context:
space:
mode:
authorToni Saario <toni.saario@qt.io>2020-09-23 21:21:48 +0300
committerToni Saario <toni.saario@qt.io>2020-09-25 23:31:02 +0300
commit19d2e61f87f822f1da2bad7108222b075c1816a2 (patch)
treec559019f2aaed51918adaba76de67c2f8ae722ed /coin
parent74146e0102d367c5e7a3567ad6bf8a46548d55de (diff)
Respect abort testing on failure flag
On regular commits we do not want to waste time running all test if there is failures. Change-Id: I050d191058293f4311268169eb26754349930129 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'coin')
-rw-r--r--coin/instructions/cmake_run_ctest_enforce_exit_code.yaml13
-rw-r--r--coin/instructions/cmake_run_ctest_ignore_exit_code.yaml13
2 files changed, 24 insertions, 2 deletions
diff --git a/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml b/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml
index dcab6f7861..9913bb4832 100644
--- a/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml
+++ b/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml
@@ -1,7 +1,18 @@
type: Group
instructions:
+ - type: EnvironmentVariable
+ variableName: CTEST_ARGS
+ variableValue: "-V --rerun-failed --force-new-ctest-process --repeat until-pass:5"
+ - type: AppendToEnvironmentVariable
+ variableName: CTEST_ARGS
+ variableValue: " --stop-on-failure"
+ enable_if:
+ condition: property
+ property: features
+ contains_value: AbortTestingOnFirstFailure
- type: ExecuteCommand
- command: "{{.Env.TESTS_ENV_PREFIX}} ctest -V --rerun-failed --force-new-ctest-process --repeat until-pass:5"
+ command: "{{.Env.TESTS_ENV_PREFIX}} ctest {{.Env.CTEST_ARGS}}"
+ executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
ignoreExitCode: false
maxTimeInSeconds: 7200
maxTimeBetweenOutput: 900
diff --git a/coin/instructions/cmake_run_ctest_ignore_exit_code.yaml b/coin/instructions/cmake_run_ctest_ignore_exit_code.yaml
index f2617ead68..d4f0c13e3f 100644
--- a/coin/instructions/cmake_run_ctest_ignore_exit_code.yaml
+++ b/coin/instructions/cmake_run_ctest_ignore_exit_code.yaml
@@ -1,7 +1,18 @@
type: Group
instructions:
+ - type: EnvironmentVariable
+ variableName: CTEST_ARGS
+ variableValue: "-V --rerun-failed --force-new-ctest-process"
+ - type: AppendToEnvironmentVariable
+ variableName: CTEST_ARGS
+ variableValue: " --stop-on-failure"
+ enable_if:
+ condition: property
+ property: features
+ contains_value: AbortTestingOnFirstFailure
- type: ExecuteCommand
- command: "{{.Env.TESTS_ENV_PREFIX}} ctest -V --rerun-failed --force-new-ctest-process"
+ command: "{{.Env.TESTS_ENV_PREFIX}} ctest {{.Env.CTEST_ARGS}}"
+ executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
ignoreExitCode: true
maxTimeInSeconds: 7200
maxTimeBetweenOutput: 900