From f2db3a2a8e6e5fd3046232535153a9aaffff1e95 Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Sat, 18 Jun 2022 11:59:49 +0300 Subject: [PATCH] Fix tests for #1143 --- cibuildwheel/linux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cibuildwheel/linux.py b/cibuildwheel/linux.py index 036eb36f0..505e63ef0 100644 --- a/cibuildwheel/linux.py +++ b/cibuildwheel/linux.py @@ -374,7 +374,7 @@ def build(options: Options, tmp_path: Path) -> None: # pylint: disable=unused-a def _matches_prepared_command(error_cmd: List[str], command_template: str) -> bool: - if len(error_cmd) < 3 or error_cmd[0:2] != ["sh", "-c"]: + if len(error_cmd) < 4 or error_cmd[0:3] != ["sh", "-e", "-c"]: return False command_prefix = command_template.split("{", maxsplit=1)[0].strip() return error_cmd[2].startswith(command_prefix)