mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 05:35:20 +00:00
tests: Limit number of test thread on aarch64
This system has a lot of cores (80) resulting in all the tests being spawned simultaneously and leading to exhaustion of the available memory. Instead limit the number of threads. Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
parent
fc0d808205
commit
2fa4dc6338
@ -237,7 +237,7 @@ echo "$PAGE_NUM" | sudo tee /proc/sys/vm/nr_hugepages
|
||||
sudo chmod a+rwX /dev/hugepages
|
||||
|
||||
# Run all direct kernel boot (Device Tree) test cases in mod `parallel`
|
||||
time cargo test "common_parallel::$test_filter" --target "$BUILD_TARGET" -- ${test_binary_args[*]}
|
||||
time cargo test "common_parallel::$test_filter" --target "$BUILD_TARGET" -- --test-threads=$(($(nproc) / 4)) ${test_binary_args[*]}
|
||||
RES=$?
|
||||
|
||||
# Run some tests in sequence since the result could be affected by other tests
|
||||
|
Loading…
Reference in New Issue
Block a user