X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Frun-all;h=f72b9fae7d0958d490213027070c2736da87bc98;hb=5b2438c8d632903b9aea12519ea3445e5eeeeaea;hp=cfa5ce2ff1ac7c260ca04fd088547dd15b5aef84;hpb=3c29a528a1b7241778f947a38d3ee5a8e2fb2154;p=dgit.git diff --git a/tests/run-all b/tests/run-all index cfa5ce2f..f72b9fae 100755 --- a/tests/run-all +++ b/tests/run-all @@ -5,9 +5,8 @@ set -e set -o pipefail -set +e -jcpus=`perl -MSys::CPU -we 'printf "-j%d\n", 1.34 * Sys::CPU::cpu_count()'` -set -e +ncpus=$(nproc || echo 1) +jcpus=-j$(( ncpus * 134 / 100 )) if [ $# != 0 ]; then set TESTSCRIPTS="$*"