]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test/encoding/readable.sh: use sysctl -n hw.ncpu instead of nproc on osx also
authorKefu Chai <kchai@redhat.com>
Wed, 13 Sep 2017 05:09:40 +0000 (13:09 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 16 Sep 2017 02:43:32 +0000 (10:43 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/encoding/readable.sh

index 508c733c99ac42b298a945d9c02e8af6cda32111..11937238028e55fef1d8bdb13d6286ec09bdd850 100755 (executable)
@@ -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