From ec6a47044a2ab321ae6427ce0d9fa3f6a17544a8 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 3 Oct 2018 14:16:24 +0900 Subject: [PATCH] test: replace stop+start by restart This suppress the following warnings: ``` Warning: Stopping systemd-networkd.service, but it can still be activated by: systemd-networkd.socket ``` --- test/test-network/systemd-networkd-tests.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 760310a33fe..043fdac7780 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -99,9 +99,7 @@ class Utilities(): os.remove(dnsmasq_log_file) def start_networkd(self): - subprocess.check_call('systemctl stop systemd-networkd', shell=True) - time.sleep(1) - subprocess.check_call('systemctl start systemd-networkd', shell=True) + subprocess.check_call('systemctl restart systemd-networkd', shell=True) time.sleep(5) global ip -- 2.47.3