Skip to content

Commit

Permalink
Update runtime_shell tests to have more appropriate timeout
Browse files Browse the repository at this point in the history
Previous timeout was CMake default of 10000000s??
  • Loading branch information
nuclearpidgeon committed Jun 15, 2024
1 parent 5ce9c43 commit 65989d2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/runtime_shell/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 65989d2

Please sign in to comment.