Skip to content

Commit

Permalink
Adding a repeat after timeout flag to ctest to try and avoid CI issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
gpdaniels committed Oct 13, 2023
1 parent 342e750 commit 5cc4082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ IF(BUILD_TESTING)
# Add a test target.
ADD_CUSTOM_TARGET(gtl_test
COMMAND "${CMAKE_COMMAND}" "-E" "echo" "Running tests..."
COMMAND "${CMAKE_CTEST_COMMAND}" "-C" "$<CONFIG>" "--output-on-failure" "--parallel" "${BUILD_TESTING_PARALLELISM}" "--timeout" "${BUILD_TESTING_TIMEOUT}"
COMMAND "${CMAKE_CTEST_COMMAND}" "-C" "$<CONFIG>" "--repeat" "after-timeout:3" "--output-on-failure" "--parallel" "${BUILD_TESTING_PARALLELISM}" "--timeout" "${BUILD_TESTING_TIMEOUT}"
DEPENDS gtl_build gtl_cleanup
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
)
Expand Down

0 comments on commit 5cc4082

Please sign in to comment.