From 658d3a04ff269c4ab10628b413cae19593a1fa99 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 17 Mar 2025 14:04:15 +0100 Subject: [PATCH] run_shell_command() with check=True --- cpplint_clitest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpplint_clitest.py b/cpplint_clitest.py index 4185000..754b3fb 100755 --- a/cpplint_clitest.py +++ b/cpplint_clitest.py @@ -56,7 +56,7 @@ def run_shell_command(cmd: str, args: str, cwd="."): cwd: from which folder to run. """ cmd, args = cmd.split(), args.split() - proc = subprocess.run(cmd + args, cwd=cwd, capture_output=True, check=False) + proc = subprocess.run(cmd + args, cwd=cwd, capture_output=True, check=True) out, err = proc.stdout, proc.stderr # Make output system-agnostic, aka support Windows