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
F154310974: D41064.diff
Mon, Apr 27, 6:31 PM
F154297680: D41064.id124964.diff
Mon, Apr 27, 4:38 PM
F154290098: D41064.id.diff
Mon, Apr 27, 3:35 PM
F154250856: D41064.id124794.diff
Mon, Apr 27, 10:02 AM
F154238155: D41064.diff
Mon, Apr 27, 8:21 AM
Unknown Object (File)
Thu, Apr 23, 9:42 PM
Unknown Object (File)
Tue, Apr 21, 10:06 PM
Unknown Object (File)
Tue, Apr 21, 4:02 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 Passed
Unit
No Test Coverage
Build Status
Buildable 52685
Build 49576: arc lint + arc unit