summaryrefslogtreecommitdiffstats
path: root/coin/instructions/cmake_run_ctest_ignore_exit_code.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'coin/instructions/cmake_run_ctest_ignore_exit_code.yaml')
-rw-r--r--coin/instructions/cmake_run_ctest_ignore_exit_code.yaml15
1 files changed, 13 insertions, 2 deletions
diff --git a/coin/instructions/cmake_run_ctest_ignore_exit_code.yaml b/coin/instructions/cmake_run_ctest_ignore_exit_code.yaml
index f2617ead68..b94717730b 100644
--- a/coin/instructions/cmake_run_ctest_ignore_exit_code.yaml
+++ b/coin/instructions/cmake_run_ctest_ignore_exit_code.yaml
@@ -1,9 +1,20 @@
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
+ maxTimeInSeconds: 10800
maxTimeBetweenOutput: 900
userMessageOnFailure: >
Failed to run tests.