Skip to content

Commit 279c3f4

Browse files
Let nightly runs determine the needed timeout. (#2993)
This is a fix for the restart recovery nightly run. It takes ~6200s for it to pass. Setting the timeout in the CMakelist as a property of the test disables the timeout specified when running the test.
1 parent 66b249a commit 279c3f4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/apollo/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ endif()
6767
# apollo_test(NAME skvbc_preexecution_with_result_auth_tests SUITE test_skvbc_preexecution VARS PRE_EXEC_RESULT_AUTH_ENABLED=True)
6868

6969
function(apollo_test)
70-
set(options V4 SUDO)
70+
set(options V4 SUDO NIGHTLY)
7171
set(oneValueArgs NAME SUITE)
7272
set(multiValueArgs VARS)
7373
cmake_parse_arguments(APOLLO_TEST "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
@@ -90,7 +90,9 @@ function(apollo_test)
9090
COMMAND ${DO_SUDO} sh -c
9191
"env ${APOLLO_ENV} ${ADDITIONAL_ENV_VARS} BLOCK_CHAIN_VERSION=${BLOCKCHAIN_VERSION} TEST_NAME=${APOLLO_TEST_NAME} python3 -m unittest ${APOLLO_TEST_SUITE} ${TEST_OUTPUT}"
9292
)
93-
set_tests_properties(${APOLLO_TEST_NAME} PROPERTIES TIMEOUT ${APOLLO_TEST_TIMEOUT})
93+
if(NOT APOLLO_TEST_NIGHTLY)
94+
set_tests_properties(${APOLLO_TEST_NAME} PROPERTIES TIMEOUT ${APOLLO_TEST_TIMEOUT})
95+
endif()
9496
endfunction()
9597

9698
apollo_test(NAME skvbc_basic_tests SUITE test_skvbc)
@@ -145,5 +147,5 @@ apollo_test(NAME skvbc_reply_tests SUITE test_skvbc_reply)
145147
apollo_test(NAME skvbc_diagnostics_tests SUITE test_skvbc_diagnostics)
146148
apollo_test(NAME osexample_demo_tests SUITE test_osexample_demo)
147149
if(ENABLE_RESTART_RECOVERY_TESTS)
148-
apollo_test(NAME skvbc_restart_recovery_tests SUITE test_skvbc_restart_recovery)
150+
apollo_test(NAME skvbc_restart_recovery_tests SUITE test_skvbc_restart_recovery NIGHTLY)
149151
endif()

0 commit comments

Comments
 (0)