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

Conflicts:
	testcases/servertestcase.py -- probably jumped over another commit in this cherry-pick which resulted in conflict
pull/707/head
Steven Hiscocks 11 years ago committed by Yaroslav Halchenko
parent 3a1a1f3ad7
commit 09b2016c05

@ -513,7 +513,12 @@ class TransmitterLogging(TransmitterBase):
self.setGetTest("logtarget", "STDOUT")
self.setGetTest("logtarget", "STDERR")
if sys.platform.lower().startswith('linux'):
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):

Loading…
Cancel
Save