Skip to content

Commit 9f44155

Browse files
run-make-check.sh: handle sudo and command that may not run in container
Work around a known failure that sudo is not expected to be present in container images. Prepare to handle a failure to set a sysctl param. Signed-off-by: John Mulligan <[email protected]>
1 parent 6acd8f0 commit 9f44155

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

run-make-check.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ function run() {
4747
fi
4848
local aiomax="$((65536 * procs))"
4949
if [ "$(/sbin/sysctl -n fs.aio-max-nr )" -lt "${aiomax}" ]; then
50-
$DRY_RUN sudo /sbin/sysctl -q -w fs.aio-max-nr="${aiomax}"
50+
wrap_sudo
51+
$DRY_RUN $SUDO /sbin/sysctl -q -w fs.aio-max-nr="${aiomax}" || true
5152
fi
5253

5354
CHECK_MAKEOPTS=${CHECK_MAKEOPTS:-$DEFAULT_MAKEOPTS}

0 commit comments

Comments
 (0)