Skip to content
Snippets Groups Projects
Commit 3e1e5372 authored by Administrator's avatar Administrator
Browse files

Rerun failed tests a second time

For the continuous tests rerun failed tests a second time. This should reduce
the number of failing test pipelines.
In most cases of failing tests the Geant3 simulations crash due to the well
known memory error. If these tests are restarted they normally work without
problem.
Since the feature to restart tests is only available with cmake 3.17 change
the scripts of the CI pipeline to use at least this version.
parent 41dfccf6
No related branches found
No related tags found
1 merge request!327Rerun failed tests a second time
Pipeline #9629 passed
......@@ -218,7 +218,6 @@ CbmRoot_Merge_macosx:
- echo "export BUILDDIR=$PWD/build" >> Dart.cfg
- echo "export SOURCEDIR=$PWD" >> Dart.cfg
- echo "export NCPU=4" >> Dart.cfg
- echo "export PATH=\$SIMPATH/bin:$PATH" >> Dart.cfg
- ls
- pwd
- cat Dart.cfg
......@@ -252,7 +251,7 @@ CbmRoot_Merge_realData:
- echo "export BUILDDIR=$PWD/build" >> Dart.cfg
- echo "export SOURCEDIR=$PWD" >> Dart.cfg
- echo "export NCPU=16" >> Dart.cfg
- echo "export PATH=\$SIMPATH/bin:$PATH" >> Dart.cfg
- echo "export PATH=/opt/cmake/3.20.1/bin:$PATH" >> Dart.cfg
- ls
- pwd
- cat Dart.cfg
......
......@@ -85,7 +85,11 @@ EndIf()
Ctest_Start($ENV{ctest_model})
unset(repeat)
If($ENV{ctest_model} MATCHES Continuous)
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.17)
set(repeat REPEAT UNTIL_PASS:2)
endif()
set(ENV{ctest_model} Nightly)
EndIf()
......@@ -111,6 +115,7 @@ If(NOT _RETVAL)
Ctest_Test(BUILD "${CTEST_BINARY_DIRECTORY}"
PARALLEL_LEVEL $ENV{number_of_processors}
${repeat}
RETURN_VALUE _ctest_test_ret_val
)
......
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