prometheus: don't run exim tests if exim is not installed (#56145)

This commit is contained in:
Frédéric Péters 2021-08-14 20:44:14 +02:00
parent 5a091076c0
commit be945bc9e7
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,8 @@ def etckeeper(ctn):
def exim(ctn):
if not os.path.exists('/usr/sbin/exim'):
return
with open('/var/log/exim4/mainlog', 'rb') as fh:
for line in fh.readlines():
if b" ** " in line and not (