Extract base path constant

This commit is contained in:
Christophe Bedard 2019-06-03 11:39:37 +02:00
parent d6fec8171c
commit 6296fc0016
5 changed files with 10 additions and 15 deletions

View file

@ -5,8 +5,8 @@ from tracetools_test.utils import (
cleanup_trace,
)
BASE_PATH = '/tmp'
PKG = 'tracetools_test'
timer_events = [
'ros2:rcl_timer_init',
'ros2:rclcpp_timer_callback_added',
@ -18,10 +18,9 @@ class TestTimer(unittest.TestCase):
def test_all(self):
session_name_prefix = 'session-test-timer-all'
base_path = '/tmp'
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)