Skip to content

Commit

Permalink
smbtorture: Add a timeout of 90 seconds per smbtorture test
Browse files Browse the repository at this point in the history
Signed-off-by: Sachin Prabhu <[email protected]>
  • Loading branch information
spuiuk committed Feb 8, 2024
1 parent 970acab commit 08b8acb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions testcases/smbtorture/test_smbtorture.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def generate_smbtorture_tests() -> typing.List[typing.Tuple[str, str]]:
return arr


@pytest.mark.timeout(90)
@pytest.mark.parametrize("share_name,test", generate_smbtorture_tests())
def test_smbtorture(share_name: str, test: str) -> None:
output = testhelper.get_tmp_file()
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ deps =
pyyaml
pytest-randomly
iso8601
pytest-timeout
commands = pytest -vrfEsxXpP testcases/

[testenv:pytest-unprivileged]
Expand Down

0 comments on commit 08b8acb

Please sign in to comment.