From d675102a3fc119bfdfb6e5c7f2c0d9c0f04f52c8 Mon Sep 17 00:00:00 2001 From: Stewart Webb Date: Sun, 19 May 2024 21:37:26 +1000 Subject: [PATCH] Update runtime_shell tests to have more appropriate timeout Previous timeout was CMake default of 10000000s?? 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()