All tests except tests/pytests/{scenarios,pkg} timeout at 60 seconds

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2024-01-22 17:58:48 +00:00 committed by Pedro Algarvio
parent 022f73aa7c
commit 5d96fdcad2

View file

@ -447,13 +447,13 @@ def pytest_collection_modifyitems(config, items):
log.warning("Mofifying collected tests to keep track of fixture usage")
timeout_marker_tests_paths = (
str(TESTS_DIR / "unit"),
str(PYTESTS_DIR / "unit"),
str(PYTESTS_DIR / "pkg"),
str(PYTESTS_DIR / "scenarios"),
)
for item in items:
if (
not salt.utils.platform.is_windows()
and str(pathlib.Path(item.fspath).resolve()).startswith(
and not str(pathlib.Path(item.fspath).resolve()).startswith(
timeout_marker_tests_paths
)
and not item.get_closest_marker("timeout")