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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue