Fix return type
This commit is contained in:
parent
f016523c17
commit
e43eed71ab
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue