From 56f9a3716550174bd41534febc008e7b819b6f60 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Mon, 10 Apr 2017 21:41:05 +0100 Subject: [PATCH] Don't run tests in a subshell so the errexit option applies --- cibuildwheel/linux.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cibuildwheel/linux.py b/cibuildwheel/linux.py index 6ca27361..a8d6c128 100644 --- a/cibuildwheel/linux.py +++ b/cibuildwheel/linux.py @@ -34,7 +34,9 @@ def build(project_dir, package_name, output_dir, test_command, test_requires): # Run the tests from a different directory if [ ! -z {test_command} ]; then - (cd "$HOME" && export PATH=$PYBIN:$PATH && sh -c {test_command}) + pushd $HOME + PATH=$PYBIN:$PATH sh -c {test_command} + popd fi done '''.format(