summaryrefslogtreecommitdiffstats
path: root/run-make-check.sh
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2019-08-20 04:49:18 +0200
committerKefu Chai <kchai@redhat.com>2019-08-20 04:51:36 +0200
commit11f9aae4ca0da80bcb6ddfa1f9f912a8f03350de (patch)
treedc352f8e5cfae0b0fd753855e6abfffb3b3a205d /run-make-check.sh
parentMerge PR #29518 into master (diff)
downloadceph-11f9aae4ca0da80bcb6ddfa1f9f912a8f03350de.tar.xz
ceph-11f9aae4ca0da80bcb6ddfa1f9f912a8f03350de.zip
run-make-check.sh: run sudo with absolute path
there is chance that `/sbin` is not listed in `secure_path`, see sudoers(5) for more details Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'run-make-check.sh')
-rwxr-xr-xrun-make-check.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/run-make-check.sh b/run-make-check.sh
index 12360cda895..cc5ff9fefb2 100755
--- a/run-make-check.sh
+++ b/run-make-check.sh
@@ -150,7 +150,7 @@ EOM
# increase the aio-max-nr, which is by default 65536. we could reach this
# limit while running seastar tests and bluestore tests.
- $DRY_RUN sudo sysctl -q -w fs.aio-max-nr=$((65536 * 16))
+ $DRY_RUN sudo /sbin/sysctl -q -w fs.aio-max-nr=$((65536 * 16))
if ! $DRY_RUN ctest $CHECK_MAKEOPTS --output-on-failure; then
rm -fr ${TMPDIR:-/tmp}/ceph-asok.*