Add -H for sudo pip install

Without -H, the command of "sudo pip install" will create a cache
directory under jenkins' home directory which is owned by root.
The remaining "pip install" commands with jenkins will fail due
to permission issue. Currently we changed devstack-gate to
use "sudo" to run "pip install" to avoid this issue. With this
fix, this workaround is not needed anymore.

Change-Id: Ibc8fbaa90ca6cb6b104ae064e7f79c619a925742
This commit is contained in:
Jianghua Wang 2017-02-07 17:43:02 +08:00
parent 2cb082ddd8
commit b704473926

View File

@ -177,7 +177,7 @@ done
# For development:
export SKIP_DEVSTACK_GATE_PROJECT=1
sudo pip install pyyaml
sudo -H pip install pyyaml
LOCATION_OF_LOCAL_GIT_REPOSITORIES=/opt/git