summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-10-10 22:48:07 +0200
committerGitHub <noreply@github.com>2024-10-10 22:48:07 +0200
commit55a657e4d28f895c9d153cfcf1dc10ddfac6208b (patch)
tree4ed449638cebce08dd76375ffbf26c751b75f3bf /smoketest
parent9cb3ba7dc81401894c1f2ea281715048043da997 (diff)
parentdb362c7a1e85b1b753bd98dae06f1d0313d7dfb9 (diff)
downloadvyos-1x-55a657e4d28f895c9d153cfcf1dc10ddfac6208b.tar.gz
vyos-1x-55a657e4d28f895c9d153cfcf1dc10ddfac6208b.zip
Merge pull request #4141 from vyos/mergify/bp/sagitta/pr-4129
smoketest: T4576: add guard timeout for systemd in log level tests (backport #4129)
Diffstat (limited to 'smoketest')
-rw-r--r--smoketest/scripts/cli/base_accel_ppp_test.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/base_accel_ppp_test.py b/smoketest/scripts/cli/base_accel_ppp_test.py
index c6f6cb804..750702e98 100644
--- a/smoketest/scripts/cli/base_accel_ppp_test.py
+++ b/smoketest/scripts/cli/base_accel_ppp_test.py
@@ -14,6 +14,7 @@
import re
+from time import sleep
from base_vyostest_shim import VyOSUnitTestSHIM
from configparser import ConfigParser
@@ -641,6 +642,11 @@ delegate={delegate_2_prefix},{delegate_mask},name={pool_name}"""
for log_level in range(0, 5):
self.set(['log', 'level', str(log_level)])
self.cli_commit()
+
+ # Systemd comes with a default of 5 restarts in 10 seconds policy,
+ # this limit can be hit by this reastart sequence, slow down a bit
+ sleep(5)
+
# Validate configuration values
conf = ConfigParser(allow_no_value=True)
conf.read(self._config_file)