From f957b630101a7a13e72e51501b7e9fca6388df9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicki=20K=C5=99=C3=AD=C5=BEek?= Date: Wed, 27 May 2026 15:28:07 +0000 Subject: [PATCH] Add isctest.mark.with_developer pytest mark Tests that exercise instrumentation, log output, or other behaviour that only exists in developer builds (the gcc:almalinux9:amd64 CI job sets -Ddeveloper=disabled to guard against such accidental coupling) can now decorate themselves with isctest.mark.with_developer to skip on non-developer builds. Assisted-by: Claude:claude-opus-4-7 --- bin/tests/system/isctest/mark.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/tests/system/isctest/mark.py b/bin/tests/system/isctest/mark.py index 1335da8417..af273706bb 100644 --- a/bin/tests/system/isctest/mark.py +++ b/bin/tests/system/isctest/mark.py @@ -53,6 +53,12 @@ def with_algorithm(name: str): return pytest.mark.skipif(os.getenv(key) != "1", reason=f"{name} is not supported") +with_developer = pytest.mark.skipif( + os.getenv("FEATURE_DEVELOPER") != "1", + reason="developer mode disabled in the build", +) + + with_dnstap = pytest.mark.skipif( os.getenv("FEATURE_DNSTAP") != "1", reason="DNSTAP support disabled in the build" )