From e010bb53fed22792a1c025f628623a22cf7e005b Mon Sep 17 00:00:00 2001 From: Yang Yu Date: Mon, 16 Oct 2017 12:31:52 +0800 Subject: 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 --- jjb/bottlenecks/bottlenecks-run-suite.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jjb/bottlenecks') 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" -- cgit 1.2.3-korg