Skip to content

Commit

Permalink
CMake: Re-run tests in CI like we do for the qmake build
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Tor Arne Vestbø <[email protected]>
  • Loading branch information
jobor committed Jul 6, 2020
1 parent 546e44d commit 860220b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coin/instructions/cmake_run_ctest_enforce_exit_code.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 860220b

Please sign in to comment.