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

@@ -0,0 +1,4 @@
def test_remotelog(remotelog, imap_or_smtp):
lineproducer = remotelog.iter(imap_or_smtp.logunit)
imap_or_smtp.connect()
assert imap_or_smtp.logunit in next(lineproducer)