Page MenuHomeFreeBSD

atf_pytest_wrapper: fix use with pytest-7.4
ClosedPublic

Authored by kp on Jul 18 2023, 2:25 PM.
Tags
None
Referenced Files
F102950135: D41064.diff
Tue, Nov 19, 2:51 AM
F102941418: D41064.diff
Tue, Nov 19, 12:52 AM
Unknown Object (File)
Sat, Nov 16, 11:25 AM
Unknown Object (File)
Sat, Nov 16, 10:02 AM
Unknown Object (File)
Thu, Nov 7, 7:06 PM
Unknown Object (File)
Tue, Oct 29, 10:24 PM
Unknown Object (File)
Sep 22 2024, 6:40 AM
Unknown Object (File)
Sep 21 2024, 3:04 PM
Subscribers

Details

Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable