]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: stop systemd-networkd.socket during testing 10977/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 28 Nov 2018 21:00:19 +0000 (22:00 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 28 Nov 2018 21:00:40 +0000 (22:00 +0100)
To suppress noisy warning messages.

test/test-network/systemd-networkd-tests.py

index 52823dc7405a326d1edd0bdaa858746a89f0bec0..806f4a496c4930e0499609583afed13d8dc4e9c6 100755 (executable)
@@ -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 = []