From fa4dbe04d7824f58a0083b07e86912d33efc9f7e Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Wed, 22 Oct 2025 11:57:58 +0200 Subject: [PATCH] ci: Allow overwriting check option in run() helper The bool is forced to check=True, but some commands may want to explicitly use kwargs to disable it. This refactor is needed for the next commit. --- ci/test/02_run_container.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/test/02_run_container.py b/ci/test/02_run_container.py index 166acad7119..7b1e3e0e496 100755 --- a/ci/test/02_run_container.py +++ b/ci/test/02_run_container.py @@ -11,8 +11,9 @@ import sys def run(cmd, **kwargs): print("+ " + shlex.join(cmd), flush=True) + kwargs.setdefault("check", True) try: - return subprocess.run(cmd, check=True, **kwargs) + return subprocess.run(cmd, **kwargs) except Exception as e: sys.exit(e)