From e4dad8dfc945d8c04c7831dd329f3cbfa297c938 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 8 Aug 2013 22:00:17 -0400 Subject: [PATCH] TST: SYSLOG present only on Linuxes thus do not test if not Linux --- testcases/servertestcase.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/testcases/servertestcase.py b/testcases/servertestcase.py index 07cc373c..0af8f920 100644 --- a/testcases/servertestcase.py +++ b/testcases/servertestcase.py @@ -24,7 +24,7 @@ __author__ = "Cyril Jaquier" __copyright__ = "Copyright (c) 2004 Cyril Jaquier" __license__ = "GPL" -import unittest, socket, time, tempfile, os +import unittest, socket, time, tempfile, os, sys from server.server import Server from server.jail import Jail from common.exceptions import UnknownJailException @@ -498,7 +498,8 @@ class TransmitterLogging(TransmitterBase): self.setGetTest("logtarget", "STDOUT") self.setGetTest("logtarget", "STDERR") - self.setGetTest("logtarget", "SYSLOG") + if sys.platform.lower().startswith('linux'): + self.setGetTest("logtarget", "SYSLOG") def testLogLevel(self): self.setGetTest("loglevel", "4", 4)