From 08b8acb41363a458412407ad8a15004fbf465a7d Mon Sep 17 00:00:00 2001 From: Sachin Prabhu Date: Thu, 8 Feb 2024 15:13:37 +0000 Subject: [PATCH] smbtorture: Add a timeout of 90 seconds per smbtorture test Signed-off-by: Sachin Prabhu --- testcases/smbtorture/test_smbtorture.py | 1 + tox.ini | 1 + 2 files changed, 2 insertions(+) diff --git a/testcases/smbtorture/test_smbtorture.py b/testcases/smbtorture/test_smbtorture.py index e266c36..e996337 100755 --- a/testcases/smbtorture/test_smbtorture.py +++ b/testcases/smbtorture/test_smbtorture.py @@ -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() diff --git a/tox.ini b/tox.ini index 4dd058e..7b87106 100644 --- a/tox.ini +++ b/tox.ini @@ -17,6 +17,7 @@ deps = pyyaml pytest-randomly iso8601 + pytest-timeout commands = pytest -vrfEsxXpP testcases/ [testenv:pytest-unprivileged]