Skip to content

Commit

Permalink
Don't write Python bytecode when invoking launch tests (#785)
Browse files Browse the repository at this point in the history
This should prevent pytest invocations via add_launch_test from writing
__pycache__ directories into the package sources.

Signed-off-by: Scott K Logan <[email protected]>
  • Loading branch information
cottsay authored Jun 21, 2024
1 parent 651f574 commit 9d5c925
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions launch_testing_ament_cmake/cmake/add_launch_test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ function(add_launch_test filename)
COMMAND ${cmd}
OUTPUT_FILE "${CMAKE_BINARY_DIR}/launch_test/${_launch_test_TARGET}.txt"
RESULT_FILE "${_launch_test_RESULT_FILE}"
ENV PYTHONDONTWRITEBYTECODE=1
TIMEOUT "${_launch_test_TIMEOUT}"
${_launch_test_UNPARSED_ARGUMENTS}
)
Expand Down

0 comments on commit 9d5c925

Please sign in to comment.