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
F144444916: D41064.id124794.diff
Sun, Feb 8, 11:41 AM
F144397260: D41064.id124964.diff
Sun, Feb 8, 5:40 AM
Unknown Object (File)
Sat, Jan 31, 3:35 PM
Unknown Object (File)
Jan 3 2026, 9:26 PM
Unknown Object (File)
Dec 13 2025, 11:52 PM
Unknown Object (File)
Nov 21 2025, 12:13 AM
Unknown Object (File)
Nov 21 2025, 12:06 AM
Unknown Object (File)
Nov 21 2025, 12:05 AM
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