Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smoketest: T4576: add guard timeout for systemd in log level tests #4129

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions smoketest/scripts/cli/base_accel_ppp_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import re

from time import sleep
from base_vyostest_shim import VyOSUnitTestSHIM
from configparser import ConfigParser

Expand Down Expand Up @@ -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)
Expand Down
Loading