summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-10-03 14:16:24 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-10-03 14:36:34 +0900
commitec6a47044a2ab321ae6427ce0d9fa3f6a17544a8 (patch)
treeceb67d965faa59f5bb3386ebc3c80c4ece7f4032 /test
parent9380d34c2a661f071cbdabe24f39d3b63ab50f8f (diff)
downloadsystemd-ec6a47044a2ab321ae6427ce0d9fa3f6a17544a8.tar.gz
systemd-ec6a47044a2ab321ae6427ce0d9fa3f6a17544a8.tar.bz2
systemd-ec6a47044a2ab321ae6427ce0d9fa3f6a17544a8.zip
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 ```
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-network/systemd-networkd-tests.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py
index 760310a33f..043fdac778 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