From: Frantisek Sumsal Date: Thu, 3 Feb 2022 17:49:35 +0000 (+0100) Subject: test-network: explicitly set check=False for subprocess.run() X-Git-Tag: v251-rc1~356^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=535e8107ee5ea2aff79d6814f5d0ae6d86908d8e;p=thirdparty%2Fsystemd.git test-network: explicitly set check=False for subprocess.run() since we're checking the returned error code explicitly via the `returncode` member. --- diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index ec2661d6318..7c40707b18e 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -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')