]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
run-make-check: should use sudo for running sysctl 23708/head
authorKefu Chai <kchai@redhat.com>
Thu, 23 Aug 2018 11:45:46 +0000 (19:45 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 23 Aug 2018 11:47:11 +0000 (19:47 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
run-make-check.sh

index eb56b4060400d20775a15eeba4e5d35f69c234d9..273531953c66a96751a970909bc31d96d7f06fb3 100755 (executable)
@@ -140,7 +140,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 sysctl -q -w fs.aio-max-nr=$((65536 * 16))
+    $DRY_RUN sudo 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.*