test/cases: adapt upgrade to support rhel9to10

This commit is contained in:
Jakub Rusz 2024-08-22 14:34:50 +02:00 committed by Tomáš Hozza
parent bb53f4833f
commit 15c8e83b94
4 changed files with 83 additions and 20 deletions

View file

@ -7,6 +7,13 @@ if [[ $ID != rhel ]]; then
return 0
fi
# This section serves to define target repos for rhel-upgrade test
# Need to check that it's actually a number passed as this script is
# being sources from a script that already has arguments passed
if [[ $# -gt 0 ]] && [[ "$1" =~ ^[0-9]+(\.[0-9]+)?$ ]]; then
VERSION_ID=$1
fi
if [[ $ID == rhel && ${VERSION_ID%.*} == 9 ]]; then
COMPOSE_ID=$(curl -L http://download.devel.redhat.com/rhel-9/nightly/RHEL-9/latest-RHEL-"${VERSION_ID}"/COMPOSE_ID)