diff --git a/tracetools_test/test/test_node.py b/tracetools_test/test/test_node.py index 18aae36..51e0a6e 100644 --- a/tracetools_test/test/test_node.py +++ b/tracetools_test/test/test_node.py @@ -20,12 +20,13 @@ class TestNode(unittest.TestCase): session_name_prefix = 'session-test-node-creation' test_node = ['test_publisher'] - exit_code, full_path = run_and_trace(BASE_PATH, - session_name_prefix, - node_creation_events, - None, - PKG, - test_node) + exit_code, full_path = run_and_trace( + BASE_PATH, + session_name_prefix, + node_creation_events, + None, + PKG, + test_node) self.assertEqual(exit_code, 0) trace_events = get_trace_event_names(full_path) diff --git a/tracetools_test/test/test_publisher.py b/tracetools_test/test/test_publisher.py index 1eb4544..3ad4c23 100644 --- a/tracetools_test/test/test_publisher.py +++ b/tracetools_test/test/test_publisher.py @@ -19,12 +19,13 @@ class TestPublisher(unittest.TestCase): session_name_prefix = 'session-test-publisher-creation' test_node = ['test_publisher'] - exit_code, full_path = run_and_trace(BASE_PATH, - session_name_prefix, - publisher_creation_events, - None, - PKG, - test_node) + exit_code, full_path = run_and_trace( + BASE_PATH, + session_name_prefix, + publisher_creation_events, + None, + PKG, + test_node) self.assertEqual(exit_code, 0) trace_events = get_trace_event_names(full_path) diff --git a/tracetools_test/test/test_service.py b/tracetools_test/test/test_service.py index 0e10508..e61937a 100644 --- a/tracetools_test/test/test_service.py +++ b/tracetools_test/test/test_service.py @@ -20,12 +20,13 @@ class TestService(unittest.TestCase): session_name_prefix = 'session-test-service-creation' test_nodes = ['test_service'] - exit_code, full_path = run_and_trace(BASE_PATH, - session_name_prefix, - service_creation_events, - None, - PKG, - test_nodes) + exit_code, full_path = run_and_trace( + BASE_PATH, + session_name_prefix, + service_creation_events, + None, + PKG, + test_nodes) self.assertEqual(exit_code, 0) trace_events = get_trace_event_names(full_path) diff --git a/tracetools_test/test/test_service_callback.py b/tracetools_test/test/test_service_callback.py index fccdccd..40c8b87 100644 --- a/tracetools_test/test/test_service_callback.py +++ b/tracetools_test/test/test_service_callback.py @@ -20,12 +20,13 @@ class TestServiceCallback(unittest.TestCase): session_name_prefix = 'session-test-service-callback' test_nodes = ['test_service_ping', 'test_service_pong'] - exit_code, full_path = run_and_trace(BASE_PATH, - session_name_prefix, - service_callback_events, - None, - PKG, - test_nodes) + exit_code, full_path = run_and_trace( + BASE_PATH, + session_name_prefix, + service_callback_events, + None, + PKG, + test_nodes) self.assertEqual(exit_code, 0) trace_events = get_trace_event_names(full_path) diff --git a/tracetools_test/test/test_subscription.py b/tracetools_test/test/test_subscription.py index 54e3166..ae25980 100644 --- a/tracetools_test/test/test_subscription.py +++ b/tracetools_test/test/test_subscription.py @@ -20,12 +20,13 @@ class TestSubscription(unittest.TestCase): session_name_prefix = 'session-test-subscription-creation' test_node = ['test_subscription'] - exit_code, full_path = run_and_trace(BASE_PATH, - session_name_prefix, - subscription_creation_events, - None, - PKG, - test_node) + exit_code, full_path = run_and_trace( + BASE_PATH, + session_name_prefix, + subscription_creation_events, + None, + PKG, + test_node) self.assertEqual(exit_code, 0) trace_events = get_trace_event_names(full_path) diff --git a/tracetools_test/test/test_subscription_callback.py b/tracetools_test/test/test_subscription_callback.py index d51b2ae..eb3e7d1 100644 --- a/tracetools_test/test/test_subscription_callback.py +++ b/tracetools_test/test/test_subscription_callback.py @@ -20,12 +20,13 @@ class TestSubscriptionCallback(unittest.TestCase): session_name_prefix = 'session-test-subscription-callback' test_nodes = ['test_ping', 'test_pong'] - exit_code, full_path = run_and_trace(BASE_PATH, - session_name_prefix, - subscription_callback_events, - None, - PKG, - test_nodes) + exit_code, full_path = run_and_trace( + BASE_PATH, + session_name_prefix, + subscription_callback_events, + None, + PKG, + test_nodes) self.assertEqual(exit_code, 0) trace_events = get_trace_event_names(full_path) diff --git a/tracetools_test/test/test_timer.py b/tracetools_test/test/test_timer.py index fc12b42..999f78e 100644 --- a/tracetools_test/test/test_timer.py +++ b/tracetools_test/test/test_timer.py @@ -22,12 +22,13 @@ class TestTimer(unittest.TestCase): session_name_prefix = 'session-test-timer-all' test_nodes = ['test_timer'] - exit_code, full_path = run_and_trace(BASE_PATH, - session_name_prefix, - timer_events, - None, - PKG, - test_nodes) + exit_code, full_path = run_and_trace( + BASE_PATH, + session_name_prefix, + timer_events, + None, + PKG, + test_nodes) self.assertEqual(exit_code, 0) trace_events = get_trace_event_names(full_path) diff --git a/tracetools_test/tracetools_test/utils.py b/tracetools_test/tracetools_test/utils.py index af9e0ae..660dc8d 100644 --- a/tracetools_test/tracetools_test/utils.py +++ b/tracetools_test/tracetools_test/utils.py @@ -16,12 +16,13 @@ from tracetools_trace.tools.lttng import ( ) -def run_and_trace(base_path, - session_name_prefix, - ros_events, - kernel_events, - package_name, - node_names): +def run_and_trace( + base_path, + session_name_prefix, + ros_events, + kernel_events, + package_name, + node_names): """ Run a node while tracing. @@ -41,9 +42,10 @@ def run_and_trace(base_path, nodes = [] for node_name in node_names: - n = launch_ros.actions.Node(package=package_name, - node_executable=node_name, - output='screen') + n = launch_ros.actions.Node( + package=package_name, + node_executable=node_name, + output='screen') nodes.append(n) ld = LaunchDescription(nodes) ls = LaunchService()