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

test-network: explicitly set check=False for subprocess.run()

since we're checking the returned error code explicitly via the
`returncode` member.
This commit is contained in:
Frantisek Sumsal 2022-02-03 18:49:35 +01:00
parent f7805a6c79
commit 535e8107ee

View File

@ -64,7 +64,7 @@ def call(*command, **kwargs):
def run(*command, **kwargs):
command = command[0].split() + list(command[1:])
return subprocess.run(command, universal_newlines=True, **kwargs)
return subprocess.run(command, universal_newlines=True, check=False, **kwargs)
def is_module_available(module_name):
lsmod_output = check_output('lsmod')