mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-12 08:58:20 +03:00
test-network: stop systemd-networkd.socket during testing
To suppress noisy warning messages.
This commit is contained in:
parent
bad4969bba
commit
c0bf673376
@ -45,9 +45,15 @@ def setUpModule():
|
||||
shutil.rmtree(networkd_ci_path)
|
||||
copytree(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'conf'), networkd_ci_path)
|
||||
|
||||
subprocess.check_call('systemctl stop systemd-networkd.socket', shell=True)
|
||||
|
||||
def tearDownModule():
|
||||
shutil.rmtree(networkd_ci_path)
|
||||
|
||||
subprocess.check_call('systemctl stop systemd-networkd.service', shell=True)
|
||||
subprocess.check_call('systemctl start systemd-networkd.socket', shell=True)
|
||||
subprocess.check_call('systemctl start systemd-networkd.service', shell=True)
|
||||
|
||||
class Utilities():
|
||||
dhcp_server_data = []
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user