mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 21:20:00 -04:00
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
This commit is contained in:
parent
950dc9945c
commit
f957b63010
1 changed files with 6 additions and 0 deletions
|
|
@ -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"
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue