From 6dafe80d19b75b1ea961bc7d3bfdac01b767397a Mon Sep 17 00:00:00 2001 From: Richard Samuels Date: Wed, 2 Jun 2021 14:07:46 -0400 Subject: SERVER-57366 venv_setup.sh should exit on pip errors --- evergreen/functions/venv_setup.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/evergreen/functions/venv_setup.sh b/evergreen/functions/venv_setup.sh index 0a901296aee..128adad9cfd 100644 --- a/evergreen/functions/venv_setup.sh +++ b/evergreen/functions/venv_setup.sh @@ -39,6 +39,11 @@ toolchain_txt="$pip_dir/toolchain-requirements.txt" activate_venv echo "Upgrading pip to 21.0.1" -python -m pip install "pip==21.0.1" -python -m pip install -r "$toolchain_txt" -q +python -m pip --disable-pip-version-check install "pip==21.0.1" || exit 1 +python -m pip --disable-pip-version-check install -r "$toolchain_txt" -q --log install.log +if [ $? != 0 ]; then + echo "Pip install error" + cat install.log + exit 1 +fi python -m pip freeze >pip-requirements.txt -- cgit v1.2.1