Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

increase default timeout for CMake copyright linter to 120s #261

Merged
merged 1 commit into from
Jul 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion ament_cmake_copyright/cmake/ament_copyright.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,21 @@
#
# :param TESTNAME: the name of the test, default: "copyright"
# :type TESTNAME: string
# :param TIMEOUT: the test timeout in seconds, default: 120
# :type TIMEOUT: integer
# :param ARGN: the files or directories to check
# :type ARGN: list of strings
#
# @public
#
function(ament_copyright)
cmake_parse_arguments(ARG "" "TESTNAME" "" ${ARGN})
cmake_parse_arguments(ARG "" "TESTNAME;TIMEOUT" "" ${ARGN})
if(NOT ARG_TESTNAME)
set(ARG_TESTNAME "copyright")
endif()
if(NOT ARG_TIMEOUT)
set(ARG_TIMEOUT 120)
endif()

find_program(ament_copyright_BIN NAMES "ament_copyright")
if(NOT ament_copyright_BIN)
Expand All @@ -44,6 +49,7 @@ function(ament_copyright)
OUTPUT_FILE "${CMAKE_BINARY_DIR}/ament_copyright/${ARG_TESTNAME}.txt"
RESULT_FILE "${result_file}"
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
TIMEOUT "${ARG_TIMEOUT}"
)
set_tests_properties(
"${ARG_TESTNAME}"
Expand Down