Skip to content

Commit

Permalink
smoketest: T4576: add guard timeout for systemd in log level tests
Browse files Browse the repository at this point in the history
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 810d9a8)
  • Loading branch information
c-po authored and mergify[bot] committed Oct 7, 2024
1 parent ded9fa2 commit db362c7
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 db362c7

Please sign in to comment.