summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-network/systemd-networkd-tests.py6
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