From c0e1333fe6c0e9b3632bc9c13137f90b48817e52 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 28 Apr 2015 23:51:00 -0400 Subject: [PATCH] BF: if no /dev/log on Linux -- don't expect setting syslog to work --- fail2ban/tests/servertestcase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fail2ban/tests/servertestcase.py b/fail2ban/tests/servertestcase.py index b851c54b..fd43bd24 100644 --- a/fail2ban/tests/servertestcase.py +++ b/fail2ban/tests/servertestcase.py @@ -802,7 +802,7 @@ class TransmitterLogging(TransmitterBase): outValue=Exception('Failed to change log target'), repr_=True # Exceptions are not comparable apparently ) - }[platform.system() in ('Linux',)] + }[platform.system() in ('Linux',) and os.path.exists('/dev/log')] ) def testLogLevel(self):