File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,15 +51,22 @@ if(BUILD_TESTING)
5151 endfunction ()
5252
5353 function (custom_security_test_c target )
54+ set (test_env
55+ RCL_ASSERT_RMW_ID_MATCHES=${rmw_implementation}
56+ RMW_IMPLEMENTATION=${rmw_implementation}
57+ ROS_SECURITY_KEYSTORE=${KEYSTORE_DIRECTORY_NATIVE_PATH}
58+ PATH ="${TEST_PATH} "
59+ )
60+ if (rmw_implementation STREQUAL "rmw_connextdds" )
61+ list (APPEND test_env RTI_MONITORING2_ENABLE=false )
62+ endif ()
63+
5464 ament_add_gtest (
5565 "${target}${target_suffix} " ${ARGN}
5666 TIMEOUT 10
5767 APPEND_LIBRARY_DIRS "${append_library_dirs} "
5868 ENV
59- RCL_ASSERT_RMW_ID_MATCHES=${rmw_implementation}
60- RMW_IMPLEMENTATION=${rmw_implementation}
61- ROS_SECURITY_KEYSTORE=${KEYSTORE_DIRECTORY_NATIVE_PATH}
62- PATH = "${TEST_PATH} "
69+ ${test_env}
6370 )
6471 if (TARGET ${target}${target_suffix} )
6572 target_link_libraries (${target}${target_suffix}
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ def generate_test_description():
4545 publisher_env['ROS_SECURITY_ENABLE'] = '@PUBLISHER_ROS_SECURITY_ENABLE@'
4646 publisher_env['ROS_SECURITY_STRATEGY'] = '@PUBLISHER_ROS_SECURITY_STRATEGY@'
4747 publisher_env['ROS_SECURITY_KEYSTORE'] = '@PUBLISHER_ROS_SECURITY_KEYSTORE@'
48+ if '@PUBLISHER_RMW@' == 'rmw_connextdds':
49+ publisher_env['RTI_MONITORING2_ENABLE'] = 'false'
4850
4951 launch_description.add_action(ExecuteProcess(
5052 cmd=publisher_cmd,
@@ -57,6 +59,8 @@ def generate_test_description():
5759 subscriber_env['ROS_SECURITY_ENABLE'] = '@SUBSCRIBER_ROS_SECURITY_ENABLE@'
5860 subscriber_env['ROS_SECURITY_STRATEGY'] = '@SUBSCRIBER_ROS_SECURITY_STRATEGY@'
5961 subscriber_env['ROS_SECURITY_KEYSTORE'] = '@SUBSCRIBER_ROS_SECURITY_KEYSTORE@'
62+ if '@SUBSCRIBER_RMW@' == 'rmw_connextdds':
63+ subscriber_env['RTI_MONITORING2_ENABLE'] = 'false'
6064
6165 subscriber_process = ExecuteProcess(
6266 cmd=subscriber_cmd,
You can’t perform that action at this time.
0 commit comments