Skip to content

Commit af4f702

Browse files
committed
Add timeout to shell test driver
1 parent ec086ad commit af4f702

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

testsuite/drivers/shell.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
class ShellTestDriver(ALSTestDriver):
66
"""
77
Run the test.sh test program.
8-
98
"""
109

11-
def run(self):
10+
def run(self) -> None:
11+
1212
# This takes care of failing the test in case the return code is
1313
# non-zero
1414
check_call(
@@ -22,4 +22,5 @@ def run(self):
2222
# The following makes the child process inherit the parent process's
2323
# environment, in addition to the above environment.
2424
ignore_environ=False,
25+
timeout=15, # seconds
2526
)

0 commit comments

Comments
 (0)