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 AFF961580E0 for ; Tue, 28 Jan 2025 12:17:03 +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 73BE63430B5 for ; Tue, 28 Jan 2025 12:17:03 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id C21C2110478; Tue, 28 Jan 2025 12:16:20 +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)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id F255B11046F for ; Tue, 28 Jan 2025 12:16:19 +0000 (UTC) Received: from mop.. (unknown [82.8.138.118]) (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) (Authenticated sender: sam@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 158AE342FDE; Tue, 28 Jan 2025 12:16:18 +0000 (UTC) From: Sam James To: gentoo-dev@lists.gentoo.org Cc: rust@gentoo.org, Sam James Subject: [gentoo-dev] [PATCH] cargo.eclass: respect MAKEOPTS for `cargo test` Date: Tue, 28 Jan 2025 12:16:08 +0000 Message-ID: X-Mailer: git-send-email 2.48.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 68e2823e-3e32-4a70-b39f-6508f9fa1ab6 X-Archives-Hash: e32847e5031952d5a676b184b8863545 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 --- Pushed. eclass/cargo.eclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index 0bc24feea222e..25a2127f6391f 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'") -- 2.48.1