How to run launch_test with argument via colcon test
Hi, I have a cmake based project in ROS2 and I want to launch integration test written in python with argument in cmake list
in CMakeLists.txt I have following (package name is rtest_rnav_rcon)
if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
set(ament_cmake_copyright_FOUND TRUE)
ament_lint_auto_find_test_dependencies()
find_package(launch_testing_ament_cmake REQUIRED)
add_launch_test(test/system_test_vda5050_order_office_sim.py
APPEND_ENV PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/test
ARGS "log_level:=INFO"
TIMEOUT 240)
endif()
and if I run
launch_test src/rex_system_tests/rtest_rnav_rcon/test/system_test_vda5050_order_office_sim.py log_level:=DEBUG
it works exactly how I want it to. I want to know, how to run the test via colcon-test
colcon test --packages-select rtest_rnav_rcon --event-handlers console_direct+ --ctest-args "log_level:=DEBUG"
but I am failing :/ how can I pass the argument via colcon-test?
Thanks very much