diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-10-03 10:03:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-03 10:03:34 +0200 |
commit | ac7b333009996aae05457c0ec35e38c736dd9549 (patch) | |
tree | f1328f36ce6ac314069faabb44449599b73efe4f /test | |
parent | b7172f347133888d876b82167f47ae11f8479528 (diff) | |
parent | 6aea927681bea61a8b7abfa87217f485316058da (diff) | |
download | systemd-ac7b333009996aae05457c0ec35e38c736dd9549.tar.gz systemd-ac7b333009996aae05457c0ec35e38c736dd9549.tar.bz2 systemd-ac7b333009996aae05457c0ec35e38c736dd9549.zip |
Merge pull request #10261 from yuwata/test-network
test: small improvements for systemd-networkd-test.py
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-network/systemd-networkd-tests.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 760310a33f..fc347c6008 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -28,7 +28,7 @@ def setUpModule(): os.makedirs(networkd_ci_path, exist_ok=True) shutil.rmtree(networkd_ci_path) - copytree('conf', networkd_ci_path) + copytree(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'conf'), networkd_ci_path) def tearDownModule(): shutil.rmtree(networkd_ci_path) @@ -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 |