diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-10-03 07:16:24 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-10-03 07:36:34 +0200 |
commit | ec6a47044a2ab321ae6427ce0d9fa3f6a17544a8 (patch) | |
tree | ceb67d965faa59f5bb3386ebc3c80c4ece7f4032 /test/test-network | |
parent | test: add test for sd_device (diff) | |
download | systemd-ec6a47044a2ab321ae6427ce0d9fa3f6a17544a8.tar.xz 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/test-network')
-rwxr-xr-x | test/test-network/systemd-networkd-tests.py | 4 |
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 |