tests/ci: split nightly testing based on RHEL major version

Using just the major version from the $VERSION_ID and defining new CI
variable $RHEL_MAJOR.
This commit is contained in:
Jakub Rusz 2021-10-06 16:06:00 +02:00 committed by Ondřej Budai
parent ea97adfdf8
commit 14b7e92eaa
5 changed files with 42 additions and 33 deletions

View file

@ -90,12 +90,12 @@ esac
# overrides for RHEL nightly builds testing
VERSION_SUFFIX=$(echo "${VERSION_ID}" | tr -d ".")
if [ -f "rhel-8.json" ]; then
sudo cp rhel-8.json "$REPODIR/rhel-${VERSION_SUFFIX}.json"
if [ -f "rhel-${VERSION_ID%.*}.json" ]; then
sudo cp rhel-"${VERSION_ID%.*}".json "$REPODIR/rhel-${VERSION_SUFFIX}.json"
fi
if [ -f "rhel-8-beta.json" ]; then
sudo cp rhel-8-beta.json "$REPODIR/rhel-${VERSION_SUFFIX}-beta.json"
if [ -f "rhel-${VERSION_ID%.*}-beta.json" ]; then
sudo cp rhel-"${VERSION_ID%.*}"-beta.json "$REPODIR/rhel-${VERSION_SUFFIX}-beta.json"
fi
# Generate all X.509 certificates for the tests