commit:     1ffa7031cf575146c9e33ec7702d2b86e49800ee
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Mar  8 16:32:47 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Mar  9 09:57:24 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ffa7031

sys-apps/portage: Use epytest to run tests

Use `epytest` to run tests rather than running it with some wheel
reinvention via meson.  This ensures that the common argument list
is used rather than inlined into the ebuild.

While at it, disable plugin autoloading for good measure.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/35672
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sys-apps/portage/portage-9999.ebuild | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys-apps/portage/portage-9999.ebuild 
b/sys-apps/portage/portage-9999.ebuild
index f0cf8ed988bb..ea323e5a917c 100644
--- a/sys-apps/portage/portage-9999.ebuild
+++ b/sys-apps/portage/portage-9999.ebuild
@@ -7,7 +7,7 @@ PYTHON_COMPAT=( pypy3 python3_{10..12} )
 PYTHON_REQ_USE='bzip2(+),threads(+)'
 TMPFILES_OPTIONAL=1
 
-inherit meson linux-info multiprocessing python-r1 tmpfiles
+inherit meson linux-info python-r1 tmpfiles
 
 DESCRIPTION="The package management and distribution system for Gentoo"
 HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage";
@@ -160,9 +160,9 @@ src_compile() {
 }
 
 src_test() {
-       local -x PYTEST_ADDOPTS="-vv -ra -l -o console_output_style=count -n 
$(makeopts_jobs) --dist=worksteal"
-
-       python_foreach_impl meson_src_test --no-rebuild --verbose
+       local EPYTEST_XDIST=1
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       python_foreach_impl epytest
 }
 
 src_install() {

Reply via email to