]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkd-test: stop varlink socket before setting up runtime directories
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 5 Jul 2025 02:32:44 +0000 (11:32 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 5 Jul 2025 07:54:19 +0000 (16:54 +0900)
Follow-up for b0ea79c5b5e056cd61eb518308aa5a992f6c313d.

test/networkd-test.py

index 72f824a8866e3102d791a28625afde9e4644c553..c82251197414e6a6763122b6a07be5463cfc2b42 100755 (executable)
@@ -64,10 +64,11 @@ def setUpModule():
     # Ensure we don't mess with an existing networkd config
     for u in [
         'systemd-networkd.socket',
-        'systemd-networkd',
+        'systemd-networkd-varlink.socket',
+        'systemd-networkd.service',
         'systemd-resolved-varlink.socket',
         'systemd-resolved-monitor.socket',
-        'systemd-resolved',
+        'systemd-resolved.service',
     ]:
         if subprocess.call(['systemctl', 'is-active', '--quiet', u]) == 0:
             subprocess.call(['systemctl', 'stop', u])