Commit 8daeb89ff1 for bind
commit 8daeb89ff1c4b3960d7c6a346c76261c83e82709
Author: Štěpán Balážik <stepan@isc.org>
Date: Tue Oct 13 12:08:39 2026 +0200
Let pytest's --ignore options work in the system tests
pytest_ignore_collect is a first-result hook. The conftest returned
False for every path it had no opinion on, which stopped pytest's own
implementation from running, so --ignore, --ignore-glob, collect_ignore
and norecursedirs were silently inert under bin/tests/system. Return
None instead when there is no reason to ignore a path.
Assisted-by: Claude:claude-fable-5-1
diff --git a/bin/tests/system/conftest.py b/bin/tests/system/conftest.py
index 62e7bb6dd7..6ca1e38589 100644
--- a/bin/tests/system/conftest.py
+++ b/bin/tests/system/conftest.py
@@ -130,7 +130,9 @@ def pytest_ignore_collect(collection_path):
isctest.log.warning("unexpected test path: %s (ignored)", collection_path)
return True
system_test_name = match.groups()[0]
- return "-" in system_test_name
+ if "-" in system_test_name:
+ return True
+ return None
def pytest_collection_modifyitems(items):