public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/bats/
Date: Sun, 15 Aug 2021 14:46:16 +0000 (UTC)	[thread overview]
Message-ID: <1629038763.ff3c1baa23b2f4513e297407b3bce19682ffe830.juippis@gentoo> (raw)

commit:     ff3c1baa23b2f4513e297407b3bce19682ffe830
Author:     Henning Schild <henning <AT> hennsch <DOT> de>
AuthorDate: Wed Aug  4 18:45:09 2021 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sun Aug 15 14:46:03 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff3c1baa

dev-util/bats: respect "makeopts_jobs" in test suite

The fact that the testsuite might run a random number of jobs if
"sys-process/parallel" is installed was raised in a bug. While this
commit does not solve the bug in question, it makes the test respect
MAKEOPTS"-jX".

Bug: https://bugs.gentoo.org/734358
Signed-off-by: Henning Schild <henning <AT> hennsch.de>
Closes: https://github.com/gentoo/gentoo/pull/21883
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 dev-util/bats/bats-1.4.1.ebuild | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/dev-util/bats/bats-1.4.1.ebuild b/dev-util/bats/bats-1.4.1.ebuild
index fba39b43420..b86c348b080 100644
--- a/dev-util/bats/bats-1.4.1.ebuild
+++ b/dev-util/bats/bats-1.4.1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit optfeature
+inherit multiprocessing optfeature
 
 MY_PN="bats-core"
 DESCRIPTION="Bats-core: Bash Automated Testing System"
@@ -20,7 +20,11 @@ RDEPEND="${DEPEND}"
 S="${WORKDIR}/${MY_PN}-${PV}"
 
 src_test() {
-	bin/bats --tap test || die "Tests failed"
+	local my_jobs=$(makeopts_jobs)
+	if ! command -v parallel; then
+		my_jobs=1
+	fi
+	bin/bats --tap --jobs "$my_jobs" test || die "Tests failed"
 }
 
 src_install() {


             reply	other threads:[~2021-08-16 20:48 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-15 14:46 Joonas Niilola [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-16 16:27 [gentoo-commits] repo/gentoo:master commit in: dev-util/bats/ Sam James
2025-01-24  7:14 Joonas Niilola
2024-12-05 15:17 Florian Schmaus
2024-07-07 21:11 Eli Schwartz
2024-07-07 21:11 Eli Schwartz
2024-06-06 17:28 Arthur Zamarin
2024-04-22 10:17 Sam James
2023-10-18 12:50 Florian Schmaus
2023-10-17  6:00 Joonas Niilola
2023-08-11  6:11 Joonas Niilola
2023-05-13  3:31 Sam James
2023-03-31 16:21 Arthur Zamarin
2023-02-24 15:09 Joonas Niilola
2023-01-28  9:34 Joonas Niilola
2023-01-07 11:30 Arthur Zamarin
2022-10-28 13:40 Florian Schmaus
2022-10-01  5:36 Sam James
2022-10-01  5:06 Sam James
2022-06-03  7:52 Joonas Niilola
2022-06-03  7:52 Joonas Niilola
2022-05-05 12:01 Jakov Smolić
2022-03-27  2:33 Sam James
2022-03-18 12:26 Arthur Zamarin
2022-03-15 16:27 Sam James
2022-02-25  9:48 Yixun Lan
2022-02-07 11:10 Florian Schmaus
2022-01-11 13:01 Jakov Smolić
2021-11-19  6:18 Arthur Zamarin
2021-10-24  4:06 Sam James
2021-09-25  2:58 Sam James
2021-09-25  2:58 Sam James
2021-08-15 14:46 Joonas Niilola
2021-07-29 10:46 Joonas Niilola
2021-07-29 10:46 Joonas Niilola
2021-07-22 22:25 Marek Szuba
2021-06-02 10:39 Sam James
2021-03-16 21:28 Sam James
2021-01-03  1:22 Sam James
2021-01-03  1:22 Sam James
2021-01-03  1:18 Sam James
2020-11-24  6:06 Georgy Yakovlev
2020-11-02  1:14 Georgy Yakovlev
2020-07-28  7:05 Lars Wendler
2020-07-28  7:05 Lars Wendler
2020-07-28  7:05 Lars Wendler
2020-07-28  7:05 Lars Wendler
2020-03-31 10:01 Agostino Sarubbo
2020-03-31  7:23 Georgy Yakovlev
2020-03-31  7:18 Agostino Sarubbo
2018-10-03  5:15 Georgy Yakovlev
2018-02-11 10:53 Michał Górny
2018-02-01  6:53 Lars Wendler
2017-08-11  8:55 Lars Wendler
2017-08-11  8:55 Lars Wendler
2017-08-08 11:03 Amy Liffey
2016-05-01  2:08 Sam Jorna
2016-04-30 14:34 Sam Jorna

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=1629038763.ff3c1baa23b2f4513e297407b3bce19682ffe830.juippis@gentoo \
    --to=juippis@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