run_tests.sh: Use sudo to install packages with pip
We need to use 'sudo' when installing packages with pip since we don't use the --user option otherwise the script will fail if executed as a non-root user. Change-Id: I6572825f66fc2a5fb040ab165395b2c385a327b7
This commit is contained in:
parent
b0be2e9327
commit
ffa0c74a4e
@ -53,7 +53,7 @@ if [[ ${ID,,} == "centos" ]]; then
|
||||
sudo yum -y install redhat-lsb-core epel-release
|
||||
# openSUSE 42.1 does not have python-ndg-httpsclient
|
||||
elif [[ ${ID,,} == *suse* ]]; then
|
||||
pip install ndg-httpsclient
|
||||
sudo pip install ndg-httpsclient
|
||||
fi
|
||||
|
||||
# Get a list of packages to install with bindep. If packages need to be
|
||||
|
Loading…
Reference in New Issue
Block a user