Skip to content

Commit 562bcad

Browse files
committed
timeout: allow update envs
1 parent 5d6aebc commit 562bcad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lisa/tools/timeout.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def run_with_timeout(
2121
timeout: int,
2222
signal: int = SIGTERM,
2323
kill_timeout: int = 0,
24+
update_envs: Optional[Dict[str, str]] = None,
2425
) -> ExecutableResult:
2526
# timeout [OPTION] DURATION COMMAND [ARG]...
2627

@@ -39,6 +40,7 @@ def run_with_timeout(
3940
timeout=timeout,
4041
signal=signal,
4142
kill_timeout=kill_timeout,
43+
update_envs=update_envs,
4244
).wait_result(timeout=command_timeout)
4345

4446
def start_with_timeout(

0 commit comments

Comments
 (0)