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:
Markos Chandras 2017-04-19 22:16:10 +01:00
parent b0be2e9327
commit ffa0c74a4e

View File

@ -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