summaryrefslogtreecommitdiffstats
path: root/qa/run-standalone.sh
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2017-07-28 08:18:09 +0200
committerKefu Chai <kchai@redhat.com>2017-07-28 08:22:02 +0200
commit75e361433dbb5e14d8a12f1162d3392eba487696 (patch)
treea396cd77e346294ce055efb0bcfef85b9551f614 /qa/run-standalone.sh
parentMerge pull request #16599 from liewegas/wip-standalone-fixes (diff)
downloadceph-75e361433dbb5e14d8a12f1162d3392eba487696.tar.xz
ceph-75e361433dbb5e14d8a12f1162d3392eba487696.zip
qa/run-standalone.sh: fix the find option to be compatible with GNU find
also re-indent to be consistent with other part of this script Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'qa/run-standalone.sh')
-rwxr-xr-xqa/run-standalone.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/qa/run-standalone.sh b/qa/run-standalone.sh
index 4d3e8c7ba91..185ed41c25d 100755
--- a/qa/run-standalone.sh
+++ b/qa/run-standalone.sh
@@ -6,11 +6,14 @@ if [ ! -e Makefile ]; then
fi
if [ `uname` = FreeBSD ]; then
- # otherwise module prettytable will not be found
- export PYTHONPATH=/usr/local/lib/python2.7/site-packages
+ # otherwise module prettytable will not be found
+ export PYTHONPATH=/usr/local/lib/python2.7/site-packages
+ exec_mode=+111
+else
+ exec_mode=/111
fi
-for f in `find ../qa/standalone -perm +111 -type f`
+for f in `find ../qa/standalone -perm $exec_mode -type f`
do
echo '--- $f ---'
PATH=$PATH:bin \