]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add isctest.mark.with_developer pytest mark 12118/head
authorNicki Křížek <nicki@isc.org>
Wed, 27 May 2026 15:28:07 +0000 (15:28 +0000)
committerNicki Křížek <nicki@isc.org>
Thu, 28 May 2026 09:37:14 +0000 (11:37 +0200)
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

index 1335da8417d539eed88657986b42d6121d5fbc93..af273706bb222e4327b6bf14733ca4ac02fe82bd 100644 (file)
@@ -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"
 )