diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/test-setup.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/test-setup.sh b/tools/test-setup.sh index 08b772781..44d9e6d0d 100755 --- a/tools/test-setup.sh +++ b/tools/test-setup.sh @@ -25,6 +25,11 @@ function is_rhel8 { 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" && \ + cat /etc/*release | grep -q 'release 9' +} if is_rhel7; then @@ -40,3 +45,10 @@ if is_rhel8; then sudo dnf install -y centos-release-openstack-xena sudo dnf install -y liberasurecode-devel fi + +if is_rhel9; then + # Install CentOS OpenStack repos so that we have access to some extra + # packages. + sudo dnf install -y centos-release-openstack-yoga + sudo dnf install -y liberasurecode-devel +fi |