]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
atf_pytest_wrapper: fix use with pytest-7.4
authorKristof Provost <kp@FreeBSD.org>
Tue, 18 Jul 2023 14:20:47 +0000 (16:20 +0200)
committerKristof Provost <kp@FreeBSD.org>
Fri, 21 Jul 2023 09:23:21 +0000 (11:23 +0200)
commit9f23cbd6cae82fd77edfad7173432fa8dccd0a95
tree23620998b032a4692c5e1bcbb1017069805f3e4d
parent20fc5bf7df1db698f2651eaa04a3bc71290e1636
atf_pytest_wrapper: fix use with pytest-7.4

As of pytest 7.4 it no longer walks all the way to the root directory
of the file system to find conftest files. As a result we don't find /
usr/tests/conftest.py, and don't load atf_python. That in turn causes
atf_python tests to fail.

Explicitly set the confcutdir, as advised by the pytest changelog.

See also: https://github.com/pytest-dev/pytest/pull/11043
MFC after: 3 weeks
Sponsored by: Orange Business Services
Differential Revision: https://reviews.freebsd.org/D41064
libexec/atf/atf-pytest-wrapper/atf_pytest_wrapper.cpp