Skip to content

Commit

Permalink
ci: correctly read environment variable from CodeBuild configuration …
Browse files Browse the repository at this point in the history
…for scheduled fuzz test (#4990)
  • Loading branch information
jouho authored Jan 6, 2025
1 parent 8c50fc7 commit fd41da0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,10 @@ if (BUILD_TESTING)
target_include_directories(fuzztest PUBLIC tests)
target_link_libraries(fuzztest PUBLIC ${PROJECT_NAME})

# Set default values for fuzzing if not defined
if(NOT DEFINED FUZZ_TIMEOUT_SEC)
# Set default values for fuzzing
if(DEFINED ENV{FUZZ_TIMEOUT_SEC})
set(FUZZ_TIMEOUT_SEC $ENV{FUZZ_TIMEOUT_SEC})
else()
set(FUZZ_TIMEOUT_SEC 60)
endif()

Expand Down

0 comments on commit fd41da0

Please sign in to comment.