diff --git a/tracetools_analysis/test/utils.py b/tracetools_analysis/test/utils.py index fc54e91..5e04eb9 100644 --- a/tracetools_analysis/test/utils.py +++ b/tracetools_analysis/test/utils.py @@ -19,23 +19,3 @@ def get_trace_event_names(trace_directory): event_names.add(event.name) return event_names - - -def run_and_trace(package_name, executable_name, session_name, path): - """ - Setup, start tracing, and run a ROS 2 executable - :param package_name (str): the name of the package - :param executable_name (str): the name of the executable to run - :param session_name (str): the name of the session - :param directory (str): the path of the main directory to write trace data to - """ - # Enable all events - lttng_setup(session_name, path) - lttng_start(session_name) - _run(package_name, executable_name) - lttng_stop(session_name) - lttng_destroy(session_name) - - -def _run(package_name, executable_name): - subprocess.check_call(['ros2', 'run', package_name, executable_name])