From a6e16b76b21b78ff985134e2f8774350660198b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0pa=C4=8Dek?= Date: Fri, 23 May 2025 17:36:54 +0200 Subject: [PATCH] Fix DNSTAP feature detection for pytest (cherry picked from commit 313a985dfcc1cd44749b11a3596ca6346913996e) --- bin/tests/system/isctest/mark.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/tests/system/isctest/mark.py b/bin/tests/system/isctest/mark.py index facf1038d5..fd1a8a0f57 100644 --- a/bin/tests/system/isctest/mark.py +++ b/bin/tests/system/isctest/mark.py @@ -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" )