1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

Merge pull request #10261 from yuwata/test-network

test: small improvements for systemd-networkd-test.py
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2018-10-03 10:03:34 +02:00 committed by GitHub
commit ac7b333009
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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