bug-fix: do not have permission to execute sudo pip 63/44763/1
authorGabriel Yu <Gabriel.yuyang@huawei.com>
Wed, 11 Oct 2017 08:24:54 +0000 (16:24 +0800)
committerGabriel Yu <Gabriel.yuyang@huawei.com>
Wed, 11 Oct 2017 08:30:34 +0000 (16:30 +0800)
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 <Gabriel.yuyang@huawei.com>
jjb/bottlenecks/bottlenecks-run-suite.sh

index f0b8a40..c349062 100644 (file)
@@ -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