tests: Reduce parallelism on x86-64 testing

Only use 75% of the available threads - this will reduce dislk and
memory pressure. Reducing the chance of flaky tests.

See: #7405

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
Rob Bradford 2025-10-09 08:35:49 +01:00
parent 8e40413886
commit d760301c8d

View file

@ -178,7 +178,7 @@ ulimit -l unlimited
ulimit -n 4096
export RUST_BACKTRACE=1
time cargo test --release --target "$BUILD_TARGET" $test_features "common_parallel::$test_filter" -- ${test_binary_args[*]}
time cargo test --release --target "$BUILD_TARGET" $test_features "common_parallel::$test_filter" -- ${test_binary_args[*]} --test-threads=$((($(nproc) * 3) / 4))
RES=$?
# Run some tests in sequence since the result could be affected by other tests