]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix DNSTAP feature detection for pytest
authorPetr Špaček <pspacek@isc.org>
Fri, 23 May 2025 15:36:54 +0000 (17:36 +0200)
committerPetr Špaček <pspacek@isc.org>
Wed, 28 May 2025 10:45:32 +0000 (10:45 +0000)
bin/tests/system/isctest/mark.py

index 9b193c8fe5b8920e93a1f6968d1acbf84fae34d6..3bd1e6816e6a0083ac9eb6ed286eda0d1fa13a27 100644 (file)
@@ -34,10 +34,6 @@ def feature_test(feature):
     return True
 
 
-def with_dnstap(*args):  # pylint: disable=unused-argument
-    return feature_test("--enable-dnstap")
-
-
 def with_tsan(*args):  # pylint: disable=unused-argument
     return feature_test("--tsan")
 
@@ -48,6 +44,11 @@ def with_algorithm(name: str):
     return pytest.mark.skipif(os.getenv(key) != "1", reason=f"{name} is not supported")
 
 
+with_dnstap = pytest.mark.skipif(
+    not feature_test("--enable-dnstap"), reason="DNSTAP support disabled in the build"
+)
+
+
 without_fips = pytest.mark.skipif(
     feature_test("--have-fips-mode"), reason="FIPS support enabled in the build"
 )