mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 08:56:15 +09:00
test-network: stop systemd-networkd.socket during testing
To suppress noisy warning messages.
This commit is contained in:
@@ -45,9 +45,15 @@ def setUpModule():
|
||||
shutil.rmtree(networkd_ci_path)
|
||||
copytree(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'conf'), networkd_ci_path)
|
||||
|
||||
subprocess.check_call('systemctl stop systemd-networkd.socket', shell=True)
|
||||
|
||||
def tearDownModule():
|
||||
shutil.rmtree(networkd_ci_path)
|
||||
|
||||
subprocess.check_call('systemctl stop systemd-networkd.service', shell=True)
|
||||
subprocess.check_call('systemctl start systemd-networkd.socket', shell=True)
|
||||
subprocess.check_call('systemctl start systemd-networkd.service', shell=True)
|
||||
|
||||
class Utilities():
|
||||
dhcp_server_data = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user