mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
networkd-test: stop resolved socket units in setUpModule()
Avoid warnings about the socket units when stopping systemd-resolved.
This commit is contained in:
committed by
Luca Boccassi
parent
366dd4a662
commit
0e0d3ed93a
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user