fmf: Don't fail if we can't modify sysctl values

If the script is running unprivileged we might not be able to modify
these so let's skip in that case.
This commit is contained in:
Daan De Meyer
2025-02-13 20:35:56 +00:00
committed by Luca Boccassi
parent de02b551ad
commit 1e6514d6d0
+3 -3
View File
@@ -13,9 +13,9 @@ lsmem
echo "Clock source: $(cat /sys/devices/system/clocksource/clocksource0/current_clocksource)"
# Bump inotify limits so nspawn containers don't run out of inotify file descriptors.
sysctl fs.inotify.max_user_watches=65536
sysctl fs.inotify.max_user_instances=1024
# Bump inotify limits if we can so nspawn containers don't run out of inotify file descriptors.
sysctl fs.inotify.max_user_watches=65536 || true
sysctl fs.inotify.max_user_instances=1024 || true
# Allow running the integration tests downstream in dist-git with something like
# the following snippet which makes the dist-git sources available in $TMT_SOURCE_DIR: