]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/test/encoding/readable.sh
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / test / encoding / readable.sh
index c0ee9d721fe4775f166dd7e01967bd0bea744990..81545852cf515a9a31f360d970914d58340288ce 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -e
+#!/usr/bin/env bash
+set -e
 
 source $(dirname $0)/../detect-build-env-vars.sh
 
@@ -6,8 +7,6 @@ source $(dirname $0)/../detect-build-env-vars.sh
 
 dir=$CEPH_ROOT/ceph-object-corpus
 
-set -e
-
 failed=0
 numtests=0
 pids=""
@@ -193,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