From 933f8da5f441eb014270bc3217b945a85648693f Mon Sep 17 00:00:00 2001 From: Jacob Perron Date: Wed, 15 Apr 2020 16:48:41 -0700 Subject: [PATCH] Filter output coming from RMWs Signed-off-by: Jacob Perron --- ros2param/test/test_verb_dump.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ros2param/test/test_verb_dump.py b/ros2param/test/test_verb_dump.py index 0704d3fc8..dfd4e94f8 100644 --- a/ros2param/test/test_verb_dump.py +++ b/ros2param/test/test_verb_dump.py @@ -28,6 +28,7 @@ import launch_testing.asserts import launch_testing.markers import launch_testing.tools +import launch_testing_ros.tools import pytest @@ -102,6 +103,9 @@ def setUpClass( proc_output, rmw_implementation ): + rmw_implementation_filter = launch_testing_ros.tools.basic_output_filter( + filtered_rmw_implementation=rmw_implementation + ) @contextlib.contextmanager def launch_param_dump_command(self, arguments): @@ -114,7 +118,8 @@ def launch_param_dump_command(self, arguments): output='screen' ) with launch_testing.tools.launch_process( - launch_service, param_dump_command_action, proc_info, proc_output + launch_service, param_dump_command_action, proc_info, proc_output, + output_filter=rmw_implementation_filter ) as param_dump_command: yield param_dump_command cls.launch_param_dump_command = launch_param_dump_command