Change param order

This commit is contained in:
Christophe Bedard 2019-06-03 09:48:09 +02:00
parent 58625f27f6
commit 29637221ca
3 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ class TestPublisher(unittest.TestCase):
base_path = '/tmp'
test_node = 'test_publisher'
exit_code, full_path = run_and_trace(session_name_prefix, base_path, 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)

View file

@ -19,7 +19,7 @@ class TestSubscription(unittest.TestCase):
base_path = '/tmp'
test_node = 'test_subscription'
exit_code, full_path = run_and_trace(session_name_prefix, base_path, 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)

View file

@ -15,7 +15,7 @@ from tracetools_trace.tools.lttng import (
lttng_destroy,
)
def run_and_trace(session_name_prefix, base_path, ros_events, kernel_events, package_name, node_executable):
def run_and_trace(base_path, session_name_prefix, ros_events, kernel_events, package_name, node_executable):
session_name = f'{session_name_prefix}-{time.strftime("%Y%m%d%H%M%S")}'
full_path = f'{base_path}/{session_name}'
print(f'trace directory: {full_path}')