diff options
author | Richard Samuels <richard.l.samuels@gmail.com> | 2021-06-02 14:07:46 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-06-02 20:42:27 +0000 |
commit | 6dafe80d19b75b1ea961bc7d3bfdac01b767397a (patch) | |
tree | 309b9ab8e7939fda99c8bf78916b618a35da485c | |
parent | facee04a59eae18b8d61d6c9e1d35c4f218b53d1 (diff) | |
download | mongo-6dafe80d19b75b1ea961bc7d3bfdac01b767397a.tar.gz |
SERVER-57366 venv_setup.sh should exit on pip errors
-rw-r--r-- | evergreen/functions/venv_setup.sh | 9 |
1 files 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 |