From c3602a698de0ef57e217736d6ccf84a2522c3565 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sat, 5 Oct 2024 10:03:49 +0200 Subject: [PATCH] smoketest: T4576: add guard timeout for systemd in log level tests 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) --- smoketest/scripts/cli/base_accel_ppp_test.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/smoketest/scripts/cli/base_accel_ppp_test.py b/smoketest/scripts/cli/base_accel_ppp_test.py index c6f6cb8045..750702e98d 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 @@ def test_accel_log_level(self): 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)