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:
parent
ea97adfdf8
commit
14b7e92eaa
5 changed files with 42 additions and 33 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue