From 29e1fe9479601ebc0cf80bc2ba4e625a312ed345 Mon Sep 17 00:00:00 2001 From: sebres Date: Thu, 11 Jan 2018 11:15:58 +0100 Subject: [PATCH] micro-fix: delete temporary file (forgotten in test-case `test_move_dir` by reassign to directory) --- fail2ban/tests/filtertestcase.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fail2ban/tests/filtertestcase.py b/fail2ban/tests/filtertestcase.py index d15678998..eb57c1926 100644 --- a/fail2ban/tests/filtertestcase.py +++ b/fail2ban/tests/filtertestcase.py @@ -997,6 +997,7 @@ def get_monitor_failures_testcase(Filter_): self.file.close() self.filter.setMaxRetry(10) self.filter.delLogPath(self.name) + _killfile(None, self.name) # if we rename parent dir into a new location (simulate directory-base log rotation) tmpsub1 = os.path.join(tmp, "1") tmpsub2 = os.path.join(tmp, "2")