From: Yu Watanabe Date: Wed, 3 Oct 2018 05:16:24 +0000 (+0900) Subject: test: replace stop+start by restart X-Git-Tag: v240~638^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec6a47044a2ab321ae6427ce0d9fa3f6a17544a8;p=thirdparty%2Fsystemd.git 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 ``` --- 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