Skip to content

Commit

Permalink
Filter output coming from RMWs
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Perron <[email protected]>
  • Loading branch information
jacobperron committed Apr 16, 2020
1 parent d4941be commit 933f8da
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ros2param/test/test_verb_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import launch_testing.asserts
import launch_testing.markers
import launch_testing.tools
import launch_testing_ros.tools

import pytest

Expand Down Expand Up @@ -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):
Expand All @@ -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
Expand Down

0 comments on commit 933f8da

Please sign in to comment.