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

[9.18] Fix feature detection for pytest markers in tests

See merge request isc-projects/bind9!7385
This commit is contained in:
Tom Krizek 2023-01-17 14:29:50 +00:00
commit ed23fd4b1f

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"
)