From 1789fab6b67f11a5a2786d89e5bd57a0bb406af4 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Tue, 11 May 2021 15:22:47 +0200 Subject: [PATCH] [ci] Repeat failing ctest once. --- scripts/ci/extends/template-build-linux.yml | 2 +- scripts/ci/extends/template-build-win.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ci/extends/template-build-linux.yml b/scripts/ci/extends/template-build-linux.yml index 5b598d5edf8..7adeeff5be2 100644 --- a/scripts/ci/extends/template-build-linux.yml +++ b/scripts/ci/extends/template-build-linux.yml @@ -27,7 +27,7 @@ ctest_labels="default" if [ "$BUILD_CTEST_LARGE" = true ] ; then ctest_labels="large|$ctest_labels" ; fi ctest_exit=0 - ctest -T Test --no-compress-output -L "$ctest_labels" || ctest_exit=$? + ctest -T Test --no-compress-output -L "$ctest_labels" --repeat until-pass:2 || ctest_exit=$? if [ $ctest_exit -ne 0 ]; then echo "ctests failed (showing the last ${NUM_CTEST_ERROR_LINES} lines):" xsltproc ${CI_PROJECT_DIR}/scripts/test/ctest-error-output.xsl Testing/*/Test.xml | tail -n ${NUM_CTEST_ERROR_LINES} diff --git a/scripts/ci/extends/template-build-win.yml b/scripts/ci/extends/template-build-win.yml index 14ae4b65777..1f6675ad78b 100644 --- a/scripts/ci/extends/template-build-win.yml +++ b/scripts/ci/extends/template-build-win.yml @@ -26,7 +26,7 @@ - | if($env:BUILD_CTEST -eq "true") { - ctest -T Test --no-compress-output -LE large + ctest -T Test --no-compress-output -LE large --repeat until-pass:2 $ctest_exit=$? if(!$ctest_exit) { -- GitLab