Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest/
Date: Fri, 28 Jan 2022 21:50:37
Message-Id: 1643406626.5332ccff11d19d17c97b707856b3f1f387acfb8f.mgorny@gentoo
1 commit: 5332ccff11d19d17c97b707856b3f1f387acfb8f
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 28 20:28:29 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 28 21:50:26 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5332ccff
7
8 dev-python/pytest: Run tests in parallel (again) to save time
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pytest/pytest-6.2.5-r2.ebuild | 8 +++++---
13 1 file changed, 5 insertions(+), 3 deletions(-)
14
15 diff --git a/dev-python/pytest/pytest-6.2.5-r2.ebuild b/dev-python/pytest/pytest-6.2.5-r2.ebuild
16 index c3a65979f46f..51a2aecdd80a 100644
17 --- a/dev-python/pytest/pytest-6.2.5-r2.ebuild
18 +++ b/dev-python/pytest/pytest-6.2.5-r2.ebuild
19 @@ -1,10 +1,10 @@
20 -# Copyright 1999-2021 Gentoo Authors
21 +# Copyright 1999-2022 Gentoo Authors
22 # Distributed under the terms of the GNU General Public License v2
23
24 EAPI=7
25
26 PYTHON_COMPAT=( python3_{8..10} pypy3 )
27 -inherit distutils-r1
28 +inherit distutils-r1 multiprocessing
29
30 DESCRIPTION="Simple powerful testing with Python"
31 HOMEPAGE="https://pytest.org/"
32 @@ -33,6 +33,7 @@ BDEPEND="
33 >=dev-python/hypothesis-3.56[${PYTHON_USEDEP}]
34 dev-python/mock[${PYTHON_USEDEP}]
35 dev-python/nose[${PYTHON_USEDEP}]
36 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
37 dev-python/requests[${PYTHON_USEDEP}]
38 dev-python/xmlschema[${PYTHON_USEDEP}]
39 )"
40 @@ -47,6 +48,7 @@ src_test() {
41 python_test() {
42 distutils_install_for_testing --via-root
43
44 - "${EPYTHON}" -m pytest -vv --lsof -rfsxX -p no:pkgcore -p no:flaky ||
45 + "${EPYTHON}" -m pytest -vv --lsof -rfsxX -p no:pkgcore -p no:flaky \
46 + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" ||
47 die "Tests failed with ${EPYTHON}"
48 }