From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 78265158087 for ; Fri, 28 Jan 2022 21:50:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5CCB22BC03A; Fri, 28 Jan 2022 21:50:36 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5D48B2BC003 for ; Fri, 28 Jan 2022 21:50:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 599333431B7 for ; Fri, 28 Jan 2022 21:50:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CB55B1EF for ; Fri, 28 Jan 2022 21:50:32 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1643406626.5332ccff11d19d17c97b707856b3f1f387acfb8f.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pytest/pytest-6.2.5-r2.ebuild X-VCS-Directories: dev-python/pytest/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 5332ccff11d19d17c97b707856b3f1f387acfb8f X-VCS-Branch: master Date: Fri, 28 Jan 2022 21:50:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f65b0cc2-5ac7-48fd-b10b-a43071df580f X-Archives-Hash: 5851fd1993e5ea7af3881b93985bcad3 commit: 5332ccff11d19d17c97b707856b3f1f387acfb8f Author: Michał Górny gentoo org> AuthorDate: Fri Jan 28 20:28:29 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Jan 28 21:50:26 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5332ccff dev-python/pytest: Run tests in parallel (again) to save time Signed-off-by: Michał Górny gentoo.org> dev-python/pytest/pytest-6.2.5-r2.ebuild | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dev-python/pytest/pytest-6.2.5-r2.ebuild b/dev-python/pytest/pytest-6.2.5-r2.ebuild index c3a65979f46f..51a2aecdd80a 100644 --- a/dev-python/pytest/pytest-6.2.5-r2.ebuild +++ b/dev-python/pytest/pytest-6.2.5-r2.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 PYTHON_COMPAT=( python3_{8..10} pypy3 ) -inherit distutils-r1 +inherit distutils-r1 multiprocessing DESCRIPTION="Simple powerful testing with Python" HOMEPAGE="https://pytest.org/" @@ -33,6 +33,7 @@ BDEPEND=" >=dev-python/hypothesis-3.56[${PYTHON_USEDEP}] dev-python/mock[${PYTHON_USEDEP}] dev-python/nose[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] dev-python/xmlschema[${PYTHON_USEDEP}] )" @@ -47,6 +48,7 @@ src_test() { python_test() { distutils_install_for_testing --via-root - "${EPYTHON}" -m pytest -vv --lsof -rfsxX -p no:pkgcore -p no:flaky || + "${EPYTHON}" -m pytest -vv --lsof -rfsxX -p no:pkgcore -p no:flaky \ + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" || die "Tests failed with ${EPYTHON}" }