From 11f9aae4ca0da80bcb6ddfa1f9f912a8f03350de Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 20 Aug 2019 10:49:18 +0800 Subject: [PATCH] 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 --- run-make-check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-make-check.sh b/run-make-check.sh index 12360cda8953c..cc5ff9fefb23f 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.* -- 2.39.5