From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 finch.gentoo.org (Postfix) with ESMTPS id DCC6F1580E0 for ; Tue, 28 Jan 2025 12:16:02 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id C5F89342FE0 for ; Tue, 28 Jan 2025 12:16:02 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id DB2B511046F; Tue, 28 Jan 2025 12:15:58 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id D467011046F for ; Tue, 28 Jan 2025 12:15:58 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8C9B9342FDE for ; Tue, 28 Jan 2025 12:15:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E411D232D for ; Tue, 28 Jan 2025 12:15:56 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1738066460.ddb45b4bb42a99dcf16bcfbbd59a8028fd14187e.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/cargo.eclass X-VCS-Directories: eclass/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: ddb45b4bb42a99dcf16bcfbbd59a8028fd14187e X-VCS-Branch: master Date: Tue, 28 Jan 2025 12:15:56 +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: 0447ae6d-6f0c-4d5d-8091-3f8bbe8d8455 X-Archives-Hash: 5c9d3631d787bf113b1c0aea2c56d2b7 commit: ddb45b4bb42a99dcf16bcfbbd59a8028fd14187e Author: Sam James gentoo org> AuthorDate: Tue Jan 28 12:14:20 2025 +0000 Commit: Sam James gentoo org> CommitDate: Tue Jan 28 12:14:20 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ddb45b4b cargo.eclass: respect MAKEOPTS for `cargo test` Without this, while (test) compile jobs respect MAKEOPTS via our config settings already deployed via the eclass, *test* jobs do not. We may want to consider setting NEXTEST_TEST_THREADS and/or having a cargo_enable_tests helper in the eclass at some point too. Bug: https://github.com/rust-lang/cargo/issues/8430 Signed-off-by: Sam James gentoo.org> eclass/cargo.eclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index 0bc24feea222..25a2127f6391 100644 --- a/eclass/cargo.eclass +++ b/eclass/cargo.eclass @@ -396,6 +396,9 @@ cargo_gen_config() { jobs = $(makeopts_jobs) incremental = false + [env] + RUST_TEST_THREADS = "$(makeopts_jobs)" + [term] verbose = true $([[ "${NOCOLOR}" = true || "${NOCOLOR}" = yes ]] && echo "color = 'never'")