[stable-2.14] ansible-test - Add work-around for pytest>=8 errors (#82723) (#82729)

* ansible-test - Add work-around for pytest>=8 errors
* Update changelogs/fragments/ansible-test-pytest-8.yml

(cherry picked from commit a1edb61ce7)
pull/82791/head
Matt Clay 9 months ago committed by GitHub
parent 93a5f75ae3
commit 9e1fd8f2f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,2 @@
minor_changes:
- ansible-test - Add a work-around for permission denied errors when using ``pytest >= 8`` on multi-user systems with an installed version of ``ansible-test``.

@ -262,6 +262,7 @@ def command_units(args: UnitsConfig) -> None:
'--junit-xml', os.path.join(ResultType.JUNIT.path, 'python%s-%s-units.xml' % (python.version, test_context)), '--junit-xml', os.path.join(ResultType.JUNIT.path, 'python%s-%s-units.xml' % (python.version, test_context)),
'--strict-markers', # added in pytest 4.5.0 '--strict-markers', # added in pytest 4.5.0
'--rootdir', data_context().content.root, '--rootdir', data_context().content.root,
'--confcutdir', data_context().content.root, # avoid permission errors when running from an installed version and using pytest >= 8
] # fmt:skip ] # fmt:skip
if not data_context().content.collection: if not data_context().content.collection:

Loading…
Cancel
Save