Skip to content
Snippets Groups Projects
Verified Commit 1789fab6 authored by Lars Bilke's avatar Lars Bilke
Browse files

[ci] Repeat failing ctest once.

parent 93a0a1e2
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
ctest_labels="default" ctest_labels="default"
if [ "$BUILD_CTEST_LARGE" = true ] ; then ctest_labels="large|$ctest_labels" ; fi if [ "$BUILD_CTEST_LARGE" = true ] ; then ctest_labels="large|$ctest_labels" ; fi
ctest_exit=0 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 if [ $ctest_exit -ne 0 ]; then
echo "ctests failed (showing the last ${NUM_CTEST_ERROR_LINES} lines):" 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} xsltproc ${CI_PROJECT_DIR}/scripts/test/ctest-error-output.xsl Testing/*/Test.xml | tail -n ${NUM_CTEST_ERROR_LINES}
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
- | - |
if($env:BUILD_CTEST -eq "true") 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=$? $ctest_exit=$?
if(!$ctest_exit) if(!$ctest_exit)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment