From: Kefu Chai Date: Wed, 13 Sep 2017 05:09:40 +0000 (+0800) Subject: test/encoding/readable.sh: use sysctl -n hw.ncpu instead of nproc on osx also X-Git-Tag: v13.0.1~880^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=767df416da4e5fe3f1e1184b0d9d4c5b8525784f;p=ceph.git test/encoding/readable.sh: use sysctl -n hw.ncpu instead of nproc on osx also Signed-off-by: Kefu Chai --- diff --git a/src/test/encoding/readable.sh b/src/test/encoding/readable.sh index 508c733c99ac..11937238028e 100755 --- a/src/test/encoding/readable.sh +++ b/src/test/encoding/readable.sh @@ -192,7 +192,7 @@ do_join() { # Using $MAX_PARALLEL_JOBS jobs if defined, unless the number of logical # processors -if [ `uname` == FreeBSD ]; then +if [ `uname` == FreeBSD -o `uname` == Darwin ]; then NPROC=`sysctl -n hw.ncpu` max_parallel_jobs=${MAX_PARALLEL_JOBS:-${NPROC}} else