commit: 923e332a0185db7f12cd1b3dfd9e321567436a7c Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Wed Feb 23 22:01:20 2022 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Wed Feb 23 22:14:44 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=923e332a
dev-python/boto3: Use pytest-xdist to speed tests up Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/boto3/boto3-1.21.6.ebuild | 6 ++++-- dev-python/boto3/boto3-9999.ebuild | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/dev-python/boto3/boto3-1.21.6.ebuild b/dev-python/boto3/boto3-1.21.6.ebuild index 48ea5aa483a1..08e404dd41b6 100644 --- a/dev-python/boto3/boto3-1.21.6.ebuild +++ b/dev-python/boto3/boto3-1.21.6.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{8..10} ) -inherit distutils-r1 +inherit distutils-r1 multiprocessing DESCRIPTION="The AWS SDK for Python" HOMEPAGE="https://github.com/boto/boto3" @@ -32,6 +32,7 @@ RDEPEND=" BDEPEND=" test? ( dev-python/mock[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] ) " @@ -56,5 +57,6 @@ python_prepare_all() { } python_test() { - epytest tests/{functional,unit} + epytest tests/{functional,unit} \ + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" } diff --git a/dev-python/boto3/boto3-9999.ebuild b/dev-python/boto3/boto3-9999.ebuild index 48ea5aa483a1..08e404dd41b6 100644 --- a/dev-python/boto3/boto3-9999.ebuild +++ b/dev-python/boto3/boto3-9999.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{8..10} ) -inherit distutils-r1 +inherit distutils-r1 multiprocessing DESCRIPTION="The AWS SDK for Python" HOMEPAGE="https://github.com/boto/boto3" @@ -32,6 +32,7 @@ RDEPEND=" BDEPEND=" test? ( dev-python/mock[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] ) " @@ -56,5 +57,6 @@ python_prepare_all() { } python_test() { - epytest tests/{functional,unit} + epytest tests/{functional,unit} \ + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" }