From dc8c6f1c90d43550287c4aca76643a99c036781b Mon Sep 17 00:00:00 2001 From: Alfredo Moralejo Date: Fri, 25 Nov 2016 18:27:47 +0100 Subject: [PATCH] Add update step after enabling OpenStack repos In specific cases, there may be conflicts between packages provided by Centos and RDO repos. In that case RDO repos should be used. To avoid any of these issues, this patch updates packages right after enabling the repos. Change-Id: Ide3265c5dc84971f19da2b5af049693cff5442b4 --- run_tests.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/run_tests.sh b/run_tests.sh index c9b569939..0425ac757 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -149,6 +149,14 @@ if [ "${MANAGE_REPOS}" = true ]; then print_header 'Puppet failed to install repositories.' exit 1 fi + if is_fedora; then + print_header 'Updating packages' + $SUDO yum update -y + if [ $? -ne 0 ]; then + print_header 'Error updating packages' + exit 1 + fi + fi fi print_header "Running Puppet Scenario: ${SCENARIO} (1st time)"