]> 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 11:27:42 +0000 (13:27 +0200)
(cherry picked from commit 313a985dfcc1cd44749b11a3596ca6346913996e)

bin/tests/system/isctest/mark.py

index facf1038d5a9a1c7bf262cae1af7b3cc7fff4f3e..fd1a8a0f57612f0c5f6bccf282452446ff16cb5b 100644 (file)
@@ -48,10 +48,6 @@ def is_dnsrps_available():
     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")
 
@@ -62,6 +58,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"
 )