]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkd-test: stop resolved socket units in setUpModule()
authorNick Rosbrook <enr0n@ubuntu.com>
Wed, 30 Apr 2025 23:47:42 +0000 (19:47 -0400)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 1 May 2025 00:52:28 +0000 (01:52 +0100)
Avoid warnings about the socket units when stopping systemd-resolved.

test/networkd-test.py

index 5f2477fccb989e8742255b90929a68db39676ff5..72f824a8866e3102d791a28625afde9e4644c553 100755 (executable)
@@ -62,7 +62,13 @@ def setUpModule():
         raise unittest.SkipTest('not virtualized and networkd is already active')
 
     # Ensure we don't mess with an existing networkd config
-    for u in ['systemd-networkd.socket', 'systemd-networkd', 'systemd-resolved']:
+    for u in [
+        'systemd-networkd.socket',
+        'systemd-networkd',
+        'systemd-resolved-varlink.socket',
+        'systemd-resolved-monitor.socket',
+        'systemd-resolved',
+    ]:
         if subprocess.call(['systemctl', 'is-active', '--quiet', u]) == 0:
             subprocess.call(['systemctl', 'stop', u])
             running_units.append(u)