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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user