public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Viorel Munteanu" <ceamac@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-util/mock/
Date: Sat, 23 Dec 2023 07:32:59 +0000 (UTC)	[thread overview]
Message-ID: <1703239773.b288b65d5e67eaaca38e02bb7a2d62028c2a2b0c.ceamac@gentoo> (raw)

commit:     b288b65d5e67eaaca38e02bb7a2d62028c2a2b0c
Author:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Fri Dec 22 10:09:33 2023 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
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 <pastalian46 <AT> 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


             reply	other threads:[~2023-12-23  7:33 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-23  7:32 Viorel Munteanu [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-28 15:12 [gentoo-commits] repo/proj/guru:master commit in: dev-util/mock/ David Roman
2025-02-28 15:12 David Roman
2024-12-21 15:24 Julien Roy
2024-12-21 15:24 Julien Roy
2024-10-02 13:59 David Roman
2024-10-02 13:59 David Roman
2024-09-27 17:02 David Roman
2024-09-27 17:02 David Roman
2024-05-20  0:18 Julien Roy
2024-05-20  0:18 Julien Roy
2024-02-15 14:58 David Roman
2024-02-15 14:58 David Roman
2023-12-27 20:23 David Roman
2023-12-20  9:10 David Roman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1703239773.b288b65d5e67eaaca38e02bb7a2d62028c2a2b0c.ceamac@gentoo \
    --to=ceamac@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox