run_tests_common.sh: Ensure EPEL is enabled

In OpenStack CI, the EPEL repository is installed but disabled. As
such we need to make sure that we enable it before we run our tests
since it's required by some packages.

Link: https://review.openstack.org/#/c/478095/
Change-Id: I87bc98a76470119edccf4169e5cb78d05c2cdb49
This commit is contained in:
Markos Chandras 2017-07-06 07:43:52 +01:00
parent 95eb17d437
commit 7350581333
1 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,10 @@ sudo pip install 'bindep>=2.4.0' tox
# redhat-lsb-core - for bindep profile support
# epel-release - required to install python-ndg_httpsclient/python2-pyasn1
if [[ ${ID,,} == "centos" ]]; then
sudo yum -y install redhat-lsb-core epel-release
sudo yum -y install redhat-lsb-core epel-release yum-utils
# epel-release could be installed but not enabled (which is very common
# in openstack-ci) so enable it here if needed
sudo yum-config-manager --enable epel || true
# openSUSE 42.1 does not have python-ndg-httpsclient
elif [[ ${ID,,} == *suse* ]] && [[ ${VERSION} == "42.1" ]]; then
sudo pip install ndg-httpsclient