From 32d6e5b861609fc9ecf59e36b516001b6da20062 Mon Sep 17 00:00:00 2001 From: Gabriel Yu Date: Wed, 11 Oct 2017 16:24:54 +0800 Subject: [PATCH] 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 --- jjb/bottlenecks/bottlenecks-run-suite.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.16.6