Fix return type

This commit is contained in:
Christophe Bedard 2019-06-18 13:45:30 +02:00
parent f016523c17
commit e43eed71ab

View file

@ -19,6 +19,7 @@ import shutil
import time import time
from typing import List from typing import List
from typing import Set from typing import Set
from typing import Tuple
import babeltrace import babeltrace
from launch import LaunchDescription from launch import LaunchDescription
@ -40,7 +41,7 @@ def run_and_trace(
kernel_events: List[str], kernel_events: List[str],
package_name: str, package_name: str,
node_names: List[str] node_names: List[str]
) -> None: ) -> Tuple[int, str]:
""" """
Run a node while tracing. Run a node while tracing.
@ -50,6 +51,7 @@ def run_and_trace(
:param kernel_events: the list of kernel events to enable :param kernel_events: the list of kernel events to enable
:param package_name: the name of the package to use :param package_name: the name of the package to use
:param node_names: the names of the nodes to execute :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 = f'{session_name_prefix}-{time.strftime("%Y%m%d%H%M%S")}'
full_path = os.path.join(base_path, session_name) full_path = os.path.join(base_path, session_name)