mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user