diff options
author | Yang Yu <Gabriel.yuyang@huawei.com> | 2017-10-16 12:31:52 +0800 |
---|---|---|
committer | Yang Yu <Gabriel.yuyang@huawei.com> | 2017-10-16 12:34:07 +0800 |
commit | e010bb53fed22792a1c025f628623a22cf7e005b (patch) | |
tree | b45149a43d680db759b06c0fa36a90f7e3582dbe /jjb | |
parent | 2dab5a73f0ab1376d924559e2809be0bffe33103 (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')
-rw-r--r-- | jjb/bottlenecks/bottlenecks-run-suite.sh | 4 |
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" |