TST: Appropriately mark JournalMatch transmitter test as skipped

pull/491/head
Steven Hiscocks 2013-12-13 17:05:46 +00:00
parent a60fbcc116
commit 43689d6470
1 changed files with 64 additions and 60 deletions

View File

@ -526,8 +526,12 @@ class Transmitter(TransmitterBase):
self.assertEqual(
self.transm.proceed(["status", "INVALID", "COMMAND"])[0],1)
if filtersystemd: # pragma: systemd no cover
def testJournalMatch(self):
if not filtersystemd:
if sys.version_info >= (2, 7):
raise unittest.SkipTest(
"systemd python interface not avilable")
return
jailName = "TestJail2"
self.server.addJail(jailName, "systemd")
values = [