From: Yu Watanabe Date: Thu, 7 Dec 2023 05:57:29 +0000 (+0900) Subject: test-network: check if networkd exits cleanly X-Git-Tag: v256-rc1~1531^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F30407%2Fhead;p=thirdparty%2Fsystemd.git test-network: check if networkd exits cleanly --- diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 8ffcda37ed9..fb9cf25c024 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -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')