summaryrefslogtreecommitdiffstats
path: root/jjb/bottlenecks
diff options
context:
space:
mode:
authorYang Yu <Gabriel.yuyang@huawei.com>2017-10-16 12:31:52 +0800
committerYang Yu <Gabriel.yuyang@huawei.com>2017-10-16 12:34:07 +0800
commite010bb53fed22792a1c025f628623a22cf7e005b (patch)
treeb45149a43d680db759b06c0fa36a90f7e3582dbe /jjb/bottlenecks
parent2dab5a73f0ab1376d924559e2809be0bffe33103 (diff)
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 <Gabriel.yuyang@huawei.com>
Diffstat (limited to 'jjb/bottlenecks')
-rw-r--r--jjb/bottlenecks/bottlenecks-run-suite.sh4
1 files changed, 2 insertions, 2 deletions
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"