Extract base path constant
This commit is contained in:
parent
d6fec8171c
commit
6296fc0016
5 changed files with 10 additions and 15 deletions
|
@ -5,8 +5,8 @@ from tracetools_test.utils import (
|
|||
cleanup_trace,
|
||||
)
|
||||
|
||||
BASE_PATH = '/tmp'
|
||||
PKG = 'tracetools_test'
|
||||
|
||||
subscription_creation_events = [
|
||||
'ros2:rcl_subscription_init',
|
||||
'ros2:rclcpp_subscription_callback_added',
|
||||
|
@ -16,10 +16,9 @@ class TestSubscription(unittest.TestCase):
|
|||
|
||||
def test_creation(self):
|
||||
session_name_prefix = 'session-test-subscription-creation'
|
||||
base_path = '/tmp'
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue