mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
Merge pull request #3037 from floppym/bug794931
tests: improve detection of readable systemd journal
This commit is contained in:
commit
98c7dd04a4
1 changed files with 1 additions and 1 deletions
|
|
@ -1396,7 +1396,7 @@ def get_monitor_failures_journal_testcase(Filter_): # pragma: systemd no cover
|
|||
# check one at at time until the first hit
|
||||
for systemd_var in 'system-runtime-logs', 'system-state-logs':
|
||||
tmp = Utils.executeCmd(
|
||||
'find "$(systemd-path %s)" -name system.journal' % systemd_var,
|
||||
'find "$(systemd-path %s)/journal" -name system.journal -readable' % systemd_var,
|
||||
timeout=10, shell=True, output=True
|
||||
)
|
||||
self.assertTrue(tmp)
|
||||
|
|
|
|||
Loading…
Reference in a new issue