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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B32F6158F70 for ; Mon, 16 Aug 2021 20:48:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 324E7E0BC6; Sun, 15 Aug 2021 14:46:19 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1A6D6E0BC6 for ; Sun, 15 Aug 2021 14:46:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4B9E8344C2B for ; Sun, 15 Aug 2021 14:46:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9CD3287B for ; Sun, 15 Aug 2021 14:46:16 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1629038763.ff3c1baa23b2f4513e297407b3bce19682ffe830.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/bats/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/bats/bats-1.4.1.ebuild X-VCS-Directories: dev-util/bats/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: ff3c1baa23b2f4513e297407b3bce19682ffe830 X-VCS-Branch: master Date: Sun, 15 Aug 2021 14:46:16 +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: a7676318-5243-4bf1-82e1-1b709886f663 X-Archives-Hash: 1099d090947bba5d275babf24f0409e6 commit: ff3c1baa23b2f4513e297407b3bce19682ffe830 Author: Henning Schild hennsch de> AuthorDate: Wed Aug 4 18:45:09 2021 +0000 Commit: Joonas Niilola gentoo 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 hennsch.de> Closes: https://github.com/gentoo/gentoo/pull/21883 Signed-off-by: Joonas Niilola 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() {