From: Yang Yu Date: Mon, 16 Oct 2017 04:31:52 +0000 (+0800) Subject: bug-fix: do not have permission to execute sudo pip X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?p=releng.git;a=commitdiff_plain;h=e010bb53fed22792a1c025f628623a22cf7e005b bug-fix: do not have permission to execute sudo pip JIRA: BOTTLENECK-211 This patch is to fix the bug by adding -H flag to sudo, i.e., sudo -H pip install ... Change-Id: Ie31f435e341ae9fe8f8e084696e8e1b7a05888d3 Signed-off-by: Yang Yu --- diff --git a/jjb/bottlenecks/bottlenecks-run-suite.sh b/jjb/bottlenecks/bottlenecks-run-suite.sh index c34906283..0e325e115 100644 --- a/jjb/bottlenecks/bottlenecks-run-suite.sh +++ b/jjb/bottlenecks/bottlenecks-run-suite.sh @@ -77,8 +77,8 @@ if [[ $SUITE_NAME == *posca* ]]; then cd ${RELENG_REPO}/modules sudo virtualenv venv source venv/bin/activate - sudo pip install -e ./ >/dev/null - sudo pip install netaddr + sudo -H pip install -e ./ >/dev/null + sudo -H pip install netaddr if [[ ${INSTALLER_TYPE} == compass ]]; then options="-u root -p root"