]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: check if networkd exits cleanly 30407/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 7 Dec 2023 05:57:29 +0000 (14:57 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 10 Dec 2023 05:40:09 +0000 (14:40 +0900)
test/test-network/systemd-networkd-tests.py

index 8ffcda37ed9f0f9e626adaf16c91899aae332c9b..fb9cf25c0247a5afd62a3b535bfa853fd47d286b 100755 (executable)
@@ -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')