[9.18] chg: test: Make pytest.PytestRemovedIn9Warning warning for "make check"
Some checks are pending
CodeQL / Analyze (cpp) (push) Waiting to run
SonarCloud / Build and analyze (cpp) (push) Waiting to run

Backport of MR !11392

Merge branch 'backport-mnowak/ignore-pytest-PytestRemovedIn9Warning-to-make-check-9.18' into 'bind-9.18'

See merge request isc-projects/bind9!11393
This commit is contained in:
Michal Nowak
2025-12-18 19:15:34 +01:00

View File

@@ -560,6 +560,10 @@ stages:
script:
- cd bin/tests/system
- RET=0
# With pytest 9.0, there's the following error in pytest_ignore_collect():
# The (path: py.path.local) argument is deprecated, please use (collection_path: pathlib.Path).
# This should be fixed before pytest 9.1, when it becomes ineffective.
- if pytest --version | grep -F "pytest 9.0" >/dev/null; then echo "filterwarnings = ignore::pytest.PytestRemovedIn9Warning" >> pytest.ini; fi
- make -j${TEST_PARALLEL_JOBS:-1} check || RET=$?
- cd "$CI_PROJECT_DIR"
- *find_python