]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
run-make-check.sh: run sudo with absolute path
authorKefu Chai <kchai@redhat.com>
Tue, 20 Aug 2019 02:49:18 +0000 (10:49 +0800)
committerErnesto Puerta <epuertat@redhat.com>
Thu, 6 Aug 2020 10:12:39 +0000 (12:12 +0200)
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>
(cherry picked from commit 11f9aae4ca0da80bcb6ddfa1f9f912a8f03350de)
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
run-make-check.sh

index eb9232c87f5091551df905443bf42042d5ada46a..1fa2c50a8eba1f614c983082651b60a74bd40b90 100755 (executable)
@@ -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.*