mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
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:
parent
2044fa3e84
commit
68ccb46ecf
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user