]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: explicitly set check=False for subprocess.run()
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 3 Feb 2022 17:49:35 +0000 (18:49 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 3 Feb 2022 17:49:35 +0000 (18:49 +0100)
since we're checking the returned error code explicitly via the
`returncode` member.

test/test-network/systemd-networkd-tests.py

index ec2661d631865d6ac273c1ea2fb6dc7165af1cfd..7c40707b18e0976c209fe03f57ad6204c3d9cce2 100755 (executable)
@@ -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')