From 68ccb46ecfcb083629588016502597db96a5e7c8 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 24 Feb 2026 12:52:13 -0800 Subject: [PATCH] tests: functional: Increase systemd rate limits for starting units - If functional tests run fast, daemon will be stopped and started many times. This is hitting rate limit for some daemons. Tests: - Configuration file is created as expected. systemd read the value as shown by 'systemctl show'. - Mumble functional tests pass without having to insert sleeps. Signed-off-by: Sunil Mohan Adapa --- plinth/tests/functional/install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plinth/tests/functional/install.sh b/plinth/tests/functional/install.sh index 94ff71e82..9cd7ae5de 100755 --- a/plinth/tests/functional/install.sh +++ b/plinth/tests/functional/install.sh @@ -14,6 +14,15 @@ PIP_OPTIONS= dpkg --compare-versions 23 \<= $PIP_VERSION && PIP_OPTIONS=--break-system-packages pip3 install $PIP_OPTIONS selenium==4.25.0 splinter==0.21.0 pytest-splinter pytest-reporter-html1 +echo "Increasing systemd rate limits for starting units" +mkdir -p /etc/systemd/system.conf.d/ +# Increase the start limit from 5 times in 10 seconds to 20 times in 10 seconds. +cat > /etc/systemd/system.conf.d/freedombox-functional-tests.conf << EOF +[Manager] +DefaultStartLimitBurst=20 +EOF +systemctl daemon-reload + echo "Installing geckodriver" ( DL_DIR=/tmp/gecko