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 <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2026-02-24 12:52:13 -08:00
parent 2044fa3e84
commit 68ccb46ecf
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -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