mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Whitelist package tests for Windows
This commit is contained in:
parent
e50d3a194f
commit
608a8ffd1c
1 changed files with 5 additions and 2 deletions
|
@ -722,11 +722,14 @@ def pytest_runtest_setup(item):
|
|||
entropy_generator.generate_entropy()
|
||||
|
||||
if salt.utils.platform.is_windows():
|
||||
unit_tests_paths = (
|
||||
auto_whitelisted_paths = (
|
||||
str(TESTS_DIR / "unit"),
|
||||
str(PYTESTS_DIR / "unit"),
|
||||
str(PYTESTS_DIR / "pkg"),
|
||||
)
|
||||
if not str(pathlib.Path(item.fspath).resolve()).startswith(unit_tests_paths):
|
||||
if not str(pathlib.Path(item.fspath).resolve()).startswith(
|
||||
auto_whitelisted_paths
|
||||
):
|
||||
# Unit tests are whitelisted on windows by default, so, we're only
|
||||
# after all other tests
|
||||
windows_whitelisted_marker = item.get_closest_marker("windows_whitelisted")
|
||||
|
|
Loading…
Add table
Reference in a new issue