TST: Skip SYSLOG log target test if '/dev/log' not present

pull/663/head
Steven Hiscocks 2014-03-19 19:21:23 +00:00
parent 1470e3c01d
commit 75325da090
1 changed files with 6 additions and 0 deletions

View File

@ -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):