test-network: sync journal before read

Otherwise, test cases that check journal entries, e.g. test_unit_file()
may fail.
This commit is contained in:
Yu Watanabe
2024-01-06 12:45:59 +09:00
parent 6db53d20f5
commit bd581438a1
@@ -713,6 +713,7 @@ def read_networkd_log(invocation_id=None, since=None):
]
if since:
command.append(f'--since={since}')
check_output('journalctl --sync')
return check_output(*command)
def stop_networkd(show_logs=True):