From: Gabriel Yu Date: Wed, 11 Oct 2017 08:24:54 +0000 (+0800) Subject: bug-fix: do not have permission to execute sudo pip X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=32d6e5b861609fc9ecf59e36b516001b6da20062;p=releng.git 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: Icdb187660cc1e08e134a79592e7454b77576f457 Signed-off-by: Gabriel Yu --- diff --git a/jjb/bottlenecks/bottlenecks-run-suite.sh b/jjb/bottlenecks/bottlenecks-run-suite.sh index f0b8a4070..c34906283 100644 --- a/jjb/bottlenecks/bottlenecks-run-suite.sh +++ b/jjb/bottlenecks/bottlenecks-run-suite.sh @@ -72,7 +72,7 @@ if [[ $SUITE_NAME == *posca* ]]; then set +e - sudo pip install virtualenv + sudo -H pip install virtualenv cd ${RELENG_REPO}/modules sudo virtualenv venv