Skip to content

Commit

Permalink
Fix tests for #1143
Browse files Browse the repository at this point in the history
  • Loading branch information
abitrolly committed Jun 18, 2022
1 parent ec7afa8 commit f2db3a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cibuildwheel/linux.py
Expand Up @@ -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)
Expand Down

0 comments on commit f2db3a2

Please sign in to comment.