introduce remotelog fixture for capturing systemd-unit logs

This commit is contained in:
holger krekel
2023-10-16 18:13:14 +02:00
parent ea5eccf377
commit c2692c7e92
4 changed files with 25 additions and 16 deletions

View File

@@ -19,7 +19,7 @@ class TestEndToEndDeltaChat:
assert msg2.text == "message0"
@pytest.mark.slow
def test_exceed_quota(self, cmfactory, lp, tmpdir, dovelogreader):
def test_exceed_quota(self, cmfactory, lp, tmpdir, remotelog):
"""This is a very slow test as it needs to upload >100MB of mail data
before quota is exceeded, and thus depends on the speed of the upload.
"""
@@ -48,8 +48,7 @@ class TestEndToEndDeltaChat:
addr = ac2.get_config("addr").lower()
saved_ok = 0
for line in dovelogreader():
line = line.decode().lower().strip()
for line in remotelog.iter("dovecot"):
if addr not in line:
# print(line)
continue