From 5fdf5f7702c5f100a560a6e352d43a12c457a8f1 Mon Sep 17 00:00:00 2001 From: Stewart Webb Date: Sun, 19 May 2024 21:37:26 +1000 Subject: [PATCH] tests: Update timeout in runtime_shell tests Previous timeout was CMake default of 10000000s?? tests relying on timeout for failure would take... 3 months, 23 days, 17 hours, 46 minutes and 40 seconds (Source: https://calculat.io/en/date/seconds/10000000) Signed-off-by: Stewart Webb --- tests/runtime_shell/CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/runtime_shell/CMakeLists.txt b/tests/runtime_shell/CMakeLists.txt index 79c96de5fc9..15eebb5f316 100644 --- a/tests/runtime_shell/CMakeLists.txt +++ b/tests/runtime_shell/CMakeLists.txt @@ -20,10 +20,15 @@ foreach(script ${UNIT_TESTS_SH}) COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/${script} ) - set_tests_properties(${script} PROPERTIES ENVIRONMENT - "FLB_ROOT=${PROJECT_SOURCE_DIR};\ + set_tests_properties(${script} PROPERTIES + ENVIRONMENT "FLB_ROOT=${PROJECT_SOURCE_DIR};\ FLB_RUNTIME_SHELL_PATH=${CMAKE_CURRENT_SOURCE_DIR};\ FLB_RUNTIME_SHELL_CONF=${CMAKE_CURRENT_SOURCE_DIR}/conf;\ FLB_BIN=${CMAKE_BINARY_DIR}/bin/fluent-bit" + # Most tests rely on FluentBit exiting as a success case by logs + # coming in and hitting the 'exit' output plugin type. Failure + # in these scenarios results in FluentBit running forever, so keep + # a short timeout for each test by default + TIMEOUT 10 ) endforeach()