launch_testing_ros.tools.output module

launch_testing_ros.tools.output.basic_output_filter(filtered_prefixes=None, filtered_patterns=None, filtered_rmw_implementation=None)

Create a line filtering function to help output testing.

Parameters:
  • filtered_prefixes – A list of byte strings representing prefixes that will cause output lines to be ignored if they start with one of the prefixes. By default lines starting with the process ID (b’pid’) and return code (b’rc’) will be ignored.

  • filtered_patterns – A list of byte strings representing regexes that will cause output lines to be ignored if they match one of the regexes.

  • filtered_rmw_implementation – RMW implementation for which the output will be ignored in addition to the filtered_prefixes/filtered_patterns.

launch_testing_ros.tools.output.get_rmw_output_filter(rmw_implementation, filter_type)