TST: allow for ignorecommand.py not installed with execute permissions

pull/1015/head
Daniel Black 2014-03-15 11:05:43 +11:00
parent d693c8e915
commit fe582e67e3
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ class IgnoreIP(LogCaptureTestCase):
self.assertTrue(self._is_logged('Requested to manually ban an ignored IP 192.168.1.32. User knows best. Proceeding to ban it.'))
def testIgnoreCommand(self):
self.filter.setIgnoreCommand("fail2ban/tests/files/ignorecommand.py <ip>")
self.filter.setIgnoreCommand(sys.exectuable + ' ' + os.path.join(TEST_FILES_DIR, "ignorecommand.py <ip>"))
self.assertTrue(self.filter.inIgnoreIPList("10.0.0.1"))
self.assertFalse(self.filter.inIgnoreIPList("10.0.0.0"))