mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
test-suite: fixed sample regexs factory counting of line number (if it errors, the line number showing in error line was incorrect, because of missing increment)
This commit is contained in:
parent
c035428535
commit
cf9c8f1e9b
1 changed files with 1 additions and 0 deletions
|
|
@ -205,6 +205,7 @@ def testSampleRegexsFactory(name, basedir):
|
|||
raise ValueError("%s: %s:%i" %
|
||||
(e, logFile.getFileName(), lnnum))
|
||||
line = next(logFile)
|
||||
lnnum += 1
|
||||
elif ignoreBlock or line.startswith("#") or not line.strip():
|
||||
continue
|
||||
else: # pragma: no cover - normally unreachable
|
||||
|
|
|
|||
Loading…
Reference in a new issue