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:
parent
f7805a6c79
commit
535e8107ee
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user