Skip to content

Commit

Permalink
Merge pull request #4141 from vyos/mergify/bp/sagitta/pr-4129
Browse files Browse the repository at this point in the history
smoketest: T4576: add guard timeout for systemd in log level tests (backport #4129)
  • Loading branch information
c-po authored Oct 10, 2024
2 parents 9cb3ba7 + db362c7 commit 55a657e
Showing 1 changed file with 6 additions and 0 deletions.
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

0 comments on commit 55a657e

Please sign in to comment.