Make tracetools.test.utils use the append_timestamp option

This commit is contained in:
Christophe Bedard 2019-08-04 13:29:49 +02:00
parent 5b2280d543
commit f686db1a1e

View file

@ -16,7 +16,6 @@
import os
import shutil
import time
from typing import List
from typing import Tuple
@ -48,13 +47,14 @@ def run_and_trace(
:param node_names: the names of the nodes to execute
:return: exit code, full generated path
"""
session_name = f'{session_name_prefix}-{time.strftime("%Y%m%d%H%M%S")}'
session_name = session_name_prefix
full_path = os.path.join(base_path, session_name)
launch_actions = []
# Add trace action
launch_actions.append(Trace(
session_name=session_name,
append_timestamp=True,
base_path=base_path,
events_ust=ros_events,
events_kernel=kernel_events