From 860220bd335dde71ff4be16de2304abeeb17c7f9 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Mon, 6 Jul 2020 11:59:44 +0200 Subject: CMake: Re-run tests in CI like we do for the qmake build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Tor Arne Vestbø --- coin/instructions/cmake_run_ctest_enforce_exit_code.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coin') 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 -- cgit v1.2.3