diff --git a/tools/test-setup.sh b/tools/test-setup.sh index b9c16af..9075f99 100755 --- a/tools/test-setup.sh +++ b/tools/test-setup.sh @@ -5,16 +5,6 @@ # Install liberasurecode-devel for CentOS from RDO repository. -function is_rhel7 { - [ -f /usr/bin/yum ] && \ - cat /etc/*release | grep -q -e "Red Hat" -e "CentOS" -e "CloudLinux" && \ - cat /etc/*release | grep -q 'release 7' -} -function is_rhel8 { - [ -f /usr/bin/dnf ] && \ - cat /etc/*release | grep -q -e "Red Hat" -e "CentOS" -e "CloudLinux" && \ - cat /etc/*release | grep -q 'release 8' -} function is_rhel9 { [ -f /usr/bin/dnf ] && \ cat /etc/*release | grep -q -e "Red Hat" -e "CentOS" -e "CloudLinux" && \ @@ -22,22 +12,6 @@ function is_rhel9 { } -if is_rhel7; then - # Install CentOS OpenStack repos so that we have access to some extra - # packages. - sudo yum install -y centos-release-openstack-train - # Now that RDO repositories are enabled, install missing - # packages. - sudo yum install -y liberasurecode-devel -fi - -if is_rhel8; then - # Install CentOS OpenStack repos so that we have access to some extra - # packages. - sudo dnf install -y centos-release-openstack-ussuri - sudo dnf install -y liberasurecode-devel -fi - if is_rhel9; then # Install CentOS OpenStack repos so that we have access to some extra # packages.