Change param order
This commit is contained in:
parent
58625f27f6
commit
29637221ca
3 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@ class TestPublisher(unittest.TestCase):
|
||||||
base_path = '/tmp'
|
base_path = '/tmp'
|
||||||
test_node = 'test_publisher'
|
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)
|
self.assertEqual(exit_code, 0)
|
||||||
|
|
||||||
trace_events = get_trace_event_names(full_path)
|
trace_events = get_trace_event_names(full_path)
|
||||||
|
|
|
@ -19,7 +19,7 @@ class TestSubscription(unittest.TestCase):
|
||||||
base_path = '/tmp'
|
base_path = '/tmp'
|
||||||
test_node = 'test_subscription'
|
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)
|
self.assertEqual(exit_code, 0)
|
||||||
|
|
||||||
trace_events = get_trace_event_names(full_path)
|
trace_events = get_trace_event_names(full_path)
|
||||||
|
|
|
@ -15,7 +15,7 @@ from tracetools_trace.tools.lttng import (
|
||||||
lttng_destroy,
|
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")}'
|
session_name = f'{session_name_prefix}-{time.strftime("%Y%m%d%H%M%S")}'
|
||||||
full_path = f'{base_path}/{session_name}'
|
full_path = f'{base_path}/{session_name}'
|
||||||
print(f'trace directory: {full_path}')
|
print(f'trace directory: {full_path}')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue