From 535e8107ee5ea2aff79d6814f5d0ae6d86908d8e Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Thu, 3 Feb 2022 18:49:35 +0100 Subject: [PATCH] test-network: explicitly set check=False for subprocess.run() since we're checking the returned error code explicitly via the `returncode` member. --- test/test-network/systemd-networkd-tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- 2.47.3