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 33D95158015 for ; Fri, 22 Dec 2023 10:11:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7D4892BC01C; Fri, 22 Dec 2023 10:11:15 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 67E412BC01C for ; Fri, 22 Dec 2023 10:11:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 96A4733F698 for ; Fri, 22 Dec 2023 10:11:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3C4AE125F for ; Fri, 22 Dec 2023 10:11:13 +0000 (UTC) From: "Takuya Wakazono" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Takuya Wakazono" Message-ID: <1703239773.b288b65d5e67eaaca38e02bb7a2d62028c2a2b0c.pastalian46@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-util/mock/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-util/mock/mock-5.3.ebuild X-VCS-Directories: dev-util/mock/ X-VCS-Committer: pastalian46 X-VCS-Committer-Name: Takuya Wakazono X-VCS-Revision: b288b65d5e67eaaca38e02bb7a2d62028c2a2b0c X-VCS-Branch: dev Date: Fri, 22 Dec 2023 10:11:13 +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: 192909bc-121e-4b12-8b68-67d3ba0635c5 X-Archives-Hash: edd002b942edf9336198fd7ad335b59f commit: b288b65d5e67eaaca38e02bb7a2d62028c2a2b0c Author: Takuya Wakazono gmail com> AuthorDate: Fri Dec 22 10:09:33 2023 +0000 Commit: Takuya Wakazono gmail com> CommitDate: Fri Dec 22 10:09:33 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b288b65d dev-util/mock: override src_test function Closes: https://bugs.gentoo.org/920445 Signed-off-by: Takuya Wakazono gmail.com> dev-util/mock/mock-5.3.ebuild | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/dev-util/mock/mock-5.3.ebuild b/dev-util/mock/mock-5.3.ebuild index 0e71b796c0..e8d27cf57e 100644 --- a/dev-util/mock/mock-5.3.ebuild +++ b/dev-util/mock/mock-5.3.ebuild @@ -17,9 +17,10 @@ SRC_URI="https://github.com/rpm-software-management/mock/releases/download/${P}- LICENSE="GPL-2+" SLOT="0" KEYWORDS="~amd64" +IUSE="test" REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RESTRICT="!test? ( test )" -#DEPEND="" RDEPEND=" ${PYTHON_DEPS} $(python_gen_cond_dep ' @@ -36,6 +37,10 @@ RDEPEND=" dev-util/distribution-gpg-keys dev-util/mock-core-configs " +BDEPEND=" + ${PYTHON_DEPS} + test? ( $(python_gen_cond_dep 'dev-python/pytest[${PYTHON_USEDEP}]') ) +" src_prepare() { default @@ -77,6 +82,10 @@ src_install() { keepdir /var/lib/mock } +src_test() { + epytest tests +} + pkg_postinst() { optfeature "chain mode support" app-arch/createrepo_c optfeature "pigz in root_cache plugin" app-arch/pigz