commit:     47d26bf91bb8316af1aba96f51cb70b8296c9210
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 28 12:19:37 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jan 28 12:19:37 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47d26bf9

sys-libs/pkgcraft: set NEXTEST_TEST_THREADS

Otherwise, test execution jobs use all available cores.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-libs/pkgcraft/pkgcraft-0.0.16-r1.ebuild | 6 ++++--
 sys-libs/pkgcraft/pkgcraft-9999.ebuild      | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/sys-libs/pkgcraft/pkgcraft-0.0.16-r1.ebuild 
b/sys-libs/pkgcraft/pkgcraft-0.0.16-r1.ebuild
index 493dc396d011..5ef300f81b23 100644
--- a/sys-libs/pkgcraft/pkgcraft-0.0.16-r1.ebuild
+++ b/sys-libs/pkgcraft/pkgcraft-0.0.16-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2023-2024 Gentoo Authors
+# Copyright 2023-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -7,7 +7,7 @@ CRATES=" "
 
 RUST_MIN_VER="1.77.1"
 
-inherit edo cargo flag-o-matic toolchain-funcs
+inherit edo cargo flag-o-matic multiprocessing toolchain-funcs
 
 DESCRIPTION="C library for pkgcraft"
 HOMEPAGE="https://pkgcraft.github.io/";
@@ -75,6 +75,8 @@ src_test() {
                # pkgcraft-c.
                cd "${WORKDIR}"/${P} || die
 
+               local -x NEXTEST_TEST_THREADS="$(makeopts_jobs)"
+
                # Need nextest per README (separate processes required)
                # Invocation from 
https://github.com/pkgcraft/pkgcraft/blob/main/.github/workflows/ci.yml#L56
                edo cargo nextest run $(usev !debug '--release') --color always 
--all-features --tests

diff --git a/sys-libs/pkgcraft/pkgcraft-9999.ebuild 
b/sys-libs/pkgcraft/pkgcraft-9999.ebuild
index 493dc396d011..5ef300f81b23 100644
--- a/sys-libs/pkgcraft/pkgcraft-9999.ebuild
+++ b/sys-libs/pkgcraft/pkgcraft-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2023-2024 Gentoo Authors
+# Copyright 2023-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -7,7 +7,7 @@ CRATES=" "
 
 RUST_MIN_VER="1.77.1"
 
-inherit edo cargo flag-o-matic toolchain-funcs
+inherit edo cargo flag-o-matic multiprocessing toolchain-funcs
 
 DESCRIPTION="C library for pkgcraft"
 HOMEPAGE="https://pkgcraft.github.io/";
@@ -75,6 +75,8 @@ src_test() {
                # pkgcraft-c.
                cd "${WORKDIR}"/${P} || die
 
+               local -x NEXTEST_TEST_THREADS="$(makeopts_jobs)"
+
                # Need nextest per README (separate processes required)
                # Invocation from 
https://github.com/pkgcraft/pkgcraft/blob/main/.github/workflows/ci.yml#L56
                edo cargo nextest run $(usev !debug '--release') --color always 
--all-features --tests

Reply via email to