diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 52823dc740..806f4a496c 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -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 = []