diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-07-06 11:59:44 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-07-06 12:17:51 +0200 |
commit | 860220bd335dde71ff4be16de2304abeeb17c7f9 (patch) | |
tree | 70b488a10536074503ca5f4c007fb656f2921d5d /coin/instructions/cmake_run_ctest_enforce_exit_code.yaml | |
parent | 546e44d473d6fece9a8996415456ac494ea3a046 (diff) |
CMake: Re-run tests in CI like we do for the qmake build
The test runner re-runs failing tests up to 5 times. We did not do this
for the CMake build, and now we're getting lots of flaky tests failing.
Fix this by passing the -repeat until-pass:5 parameter to ctest.
Change-Id: I6ff3c1e7901bc22cafec87b15d087eab2a565c65
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'coin/instructions/cmake_run_ctest_enforce_exit_code.yaml')
-rw-r--r-- | coin/instructions/cmake_run_ctest_enforce_exit_code.yaml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml b/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml index 13729c51f6..dcab6f7861 100644 --- a/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml +++ b/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml @@ -1,7 +1,7 @@ type: Group instructions: - type: ExecuteCommand - command: "{{.Env.TESTS_ENV_PREFIX}} ctest -V --rerun-failed --force-new-ctest-process" + command: "{{.Env.TESTS_ENV_PREFIX}} ctest -V --rerun-failed --force-new-ctest-process --repeat until-pass:5" ignoreExitCode: false maxTimeInSeconds: 7200 maxTimeBetweenOutput: 900 |