mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 23:00:00 -04:00
Fix feature detection for pytest markers in tests
The condition was accidentally reversed during refactoring in9730ac4c56. It would result in skipped tests on builds with proper support and false negatives on builds without proper feature support. Credit for reporting the issue and the fix goes to Stanislav Levin. (cherry picked from commit473cb530f4)
This commit is contained in:
parent
aee89c3454
commit
58ff3b4fc0
1 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue