Don't run tests in a subshell so the errexit option applies

This commit is contained in:
Joe Rickerby
2017-04-10 21:41:05 +01:00
parent 5c91340ad0
commit 56f9a37165
+3 -1
View File
@@ -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(