diff options
author | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-10-08 15:06:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-08 15:06:02 +0300 |
commit | 54f2999a5618d72ebb445c9fe79e0a00a921fe93 (patch) | |
tree | c8148523d6b1928122106ee0630fcb4783992e7a | |
parent | 47b1ace0e7f5b718a628c0e39a99cca775ff44b7 (diff) | |
download | vyos-1x-54f2999a5618d72ebb445c9fe79e0a00a921fe93.tar.gz vyos-1x-54f2999a5618d72ebb445c9fe79e0a00a921fe93.zip |
smoketest: T4576: add guard timeout for systemd in log level tests (#4142)
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.
(cherry picked from commit 810d9a819ee378460a05ed6c7e064fb105058fc2)
Co-authored-by: Christian Breunig <christian@breunig.cc>
-rw-r--r-- | smoketest/scripts/cli/base_accel_ppp_test.py | 6 |
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) |