Merge branch '3804-fix-feature-detection-in-pytests' into 'main'

Fix feature detection for pytest markers in tests

Closes #3804

See merge request isc-projects/bind9!7383
This commit is contained in:
Tom Krizek 2023-01-17 13:48:57 +00:00
commit 9c32089fa9

View file

@ -34,9 +34,9 @@ def feature_test(feature):
have_libxml2 = pytest.mark.skipif(
feature_test("--have-libxml2"), reason="libxml2 support disabled in the build"
not feature_test("--have-libxml2"), reason="libxml2 support disabled in the build"
)
have_json_c = pytest.mark.skipif(
feature_test("--have-json-c"), reason="json-c support disabled in the build"
not feature_test("--have-json-c"), reason="json-c support disabled in the build"
)