mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
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 <sam@gentoo.org>
This commit is contained in:
@@ -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'")
|
||||
|
||||
Reference in New Issue
Block a user