Skip to content

Commit 7b3ef88

Browse files
spuiukanoopcs9
authored andcommitted
smbtorture: Add a timeout of 90 seconds per smbtorture test
Signed-off-by: Sachin Prabhu <[email protected]>
1 parent 9d3c5c3 commit 7b3ef88

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
@@ -121,6 +121,7 @@ def generate_smbtorture_tests() -> typing.List[typing.Tuple[str, str]]:
121121
return arr
122122

123123

124+
@pytest.mark.timeout(90)
124125
@pytest.mark.parametrize("share_name,test", generate_smbtorture_tests())
125126
def test_smbtorture(share_name: str, test: str) -> None:
126127
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)