Browse Source

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
commit
09b2016c05
  1. 9
      testcases/servertestcase.py

9
testcases/servertestcase.py

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

Loading…
Cancel
Save