From: Petr Špaček Date: Fri, 23 May 2025 15:36:54 +0000 (+0200) Subject: Fix DNSTAP feature detection for pytest X-Git-Tag: v9.21.9~36^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=313a985dfcc1cd44749b11a3596ca6346913996e;p=thirdparty%2Fbind9.git Fix DNSTAP feature detection for pytest --- diff --git a/bin/tests/system/isctest/mark.py b/bin/tests/system/isctest/mark.py index 9b193c8fe5b..3bd1e6816e6 100644 --- a/bin/tests/system/isctest/mark.py +++ b/bin/tests/system/isctest/mark.py @@ -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" )