test-network: stop systemd-networkd.socket during testing

To suppress noisy warning messages.
This commit is contained in:
Yu Watanabe 2018-11-28 22:00:19 +01:00
parent bad4969bba
commit c0bf673376
1 changed files with 6 additions and 0 deletions

View File

@ -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 = []