Skip to content

Commit 08b8acb

Browse files
committed
smbtorture: Add a timeout of 90 seconds per smbtorture test
Signed-off-by: Sachin Prabhu <[email protected]>
1 parent 970acab commit 08b8acb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

testcases/smbtorture/test_smbtorture.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ def generate_smbtorture_tests() -> typing.List[typing.Tuple[str, str]]:
120120
return arr
121121

122122

123+
@pytest.mark.timeout(90)
123124
@pytest.mark.parametrize("share_name,test", generate_smbtorture_tests())
124125
def test_smbtorture(share_name: str, test: str) -> None:
125126
output = testhelper.get_tmp_file()

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ deps =
1717
pyyaml
1818
pytest-randomly
1919
iso8601
20+
pytest-timeout
2021
commands = pytest -vrfEsxXpP testcases/
2122

2223
[testenv:pytest-unprivileged]

0 commit comments

Comments
 (0)