diff --git a/fail2ban/tests/servertestcase.py b/fail2ban/tests/servertestcase.py index 231aecd2..c4163db9 100644 --- a/fail2ban/tests/servertestcase.py +++ b/fail2ban/tests/servertestcase.py @@ -678,6 +678,12 @@ class TransmitterLogging(TransmitterBase): self.setGetTest("logtarget", "STDOUT") self.setGetTest("logtarget", "STDERR") + + def testLogTargetSYSLOG(self): + if not os.path.exists("/dev/log") and sys.version_info >= (2, 7): + raise unittest.SkipTest("'/dev/log' not present") + elif not os.path.exists("/dev/log"): + return self.setGetTest("logtarget", "SYSLOG") def testLogLevel(self):