]> git.ipfire.org Git - thirdparty/bind9.git/commit
Make system tests compatible with pytest 8.0.0+
authorNicki Křížek <nicki@isc.org>
Mon, 27 May 2024 14:10:04 +0000 (16:10 +0200)
committerNicki Křížek <nicki@isc.org>
Thu, 24 Oct 2024 11:13:13 +0000 (13:13 +0200)
commit7118cbed984108ba22bd2de4b86ccf4abc9a558d
tree99d4de65ed7866572006c16269fc1c39b67b0fee
parent4c882e4c0b4b958880f175f4c39fac6a75f494b9
Make system tests compatible with pytest 8.0.0+

The pytest collection mechanism has been overhauled in pytest 8.0.0,
resulting in a different node tree when collecting the tests. Ensure the
paths / names we're using that are derived from the node tree are
consistent across different pytest versions.

Particularly, this has affected the convenience symlink name (which is
supposed to be in the form of e.g. dns64_sh_dns64 for the dns64 module
and tests_sh_dns64.py module) and the test name that's logged at the
start of the test, which is supposed to include the system test
directory relative to the root system test directory as well as the
module name (e.g. dns64/tests_sh_dns64.py).

Related https://github.com/pytest-dev/pytest/issues/7777
bin/tests/system/conftest.py