mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
[9.20] chg: test: Temporarily change pytest.PytestRemovedIn9Warning error to warning
We need this to be able to use pytest 9.0 from Debian "sid". Additionally, this error needs to be addressed before pytest 9.1 is released, as the filter will no longer work. Also, all pytests in CI images need to be upgraded to version 7, where the new API is supported. Related #5690 Backport of MR !11379 Merge branch 'backport-mnowak/ignore-pytest-PytestRemovedIn9Warning-9.20' into 'bind-9.20' See merge request isc-projects/bind9!11380
This commit is contained in:
commit
83660f0ebb
1 changed files with 4 additions and 0 deletions
|
|
@ -573,6 +573,10 @@ stages:
|
|||
- ( if [ "${CI_DISPOSABLE_ENVIRONMENT}" = "true" ]; then sleep 3000; "$PYTHON" "${CI_PROJECT_DIR}/util/get-running-system-tests.py"; fi ) &
|
||||
- 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
|
||||
- >
|
||||
("$PYTEST" --junit-xml="$CI_PROJECT_DIR"/junit.xml -n "$TEST_PARALLEL_JOBS" | tee pytest.out.txt) || RET=1
|
||||
- *check_for_junit_xml
|
||||
|
|
|
|||
Loading…
Reference in a new issue