diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/getopts.sh | 2 | ||||
-rw-r--r-- | tests/util.sh | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/getopts.sh b/tests/getopts.sh index cbb3ce4..a16511f 100644 --- a/tests/getopts.sh +++ b/tests/getopts.sh @@ -5,7 +5,7 @@ ## Argument parsing -JOBS=$(nproc) +JOBS=$(_nproc) MAKE= PATTERNS=() SUDO=() diff --git a/tests/util.sh b/tests/util.sh index e3eca60..1718a1a 100644 --- a/tests/util.sh +++ b/tests/util.sh @@ -194,9 +194,9 @@ pop_defers() { ## Parallelism # Get the number of processors -nproc() { +_nproc() { { - (command nproc) \ + nproc \ || sysctl -n hw.ncpu \ || getconf _NPROCESSORS_ONLN \ || echo 1 |