Skip to content

Commit

Permalink
Merge pull request pypa#175 from GjjvdBurg/returncode
Browse files Browse the repository at this point in the history
Make sure build fails when test command fails
  • Loading branch information
joerick authored Nov 9, 2019
2 parents b51434b + 5210ad3 commit 42d1610
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cibuildwheel/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ def build(project_dir, output_dir, test_command, test_requires, test_extras, bef
sh -c {test_command}
popd
)
# exit if tests failed (needed for older bash versions)
if [ $? -ne 0 ]; then
exit 1;
fi
# clean up
rm -rf "$venv_dir"
Expand Down

0 comments on commit 42d1610

Please sign in to comment.