mirror of
https://github.com/systemd/systemd.git
synced 2025-03-07 04:58:29 +03:00
test-network: check if networkd exits cleanly
This commit is contained in:
parent
f67208a172
commit
7618fd06ef
@ -718,6 +718,8 @@ def stop_networkd(show_logs=True):
|
||||
check_output('systemctl stop systemd-networkd.service')
|
||||
if show_logs:
|
||||
print(read_networkd_log(invocation_id))
|
||||
# Check if networkd exits cleanly.
|
||||
assert call_quiet('systemctl is-failed -q systemd-networkd.service') == 1
|
||||
|
||||
def start_networkd():
|
||||
check_output('systemctl start systemd-networkd')
|
||||
|
Loading…
x
Reference in New Issue
Block a user