tests: Override filename contains minor version number

This commit is contained in:
Alexander Todorov 2021-08-31 11:24:22 +03:00 committed by Alexander Todorov
parent 44c25b7a87
commit 38bb690e87
2 changed files with 8 additions and 5 deletions

View file

@ -85,12 +85,13 @@ case "${ID}-${VERSION_ID}" in
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"
sudo cp rhel-8.json "$REPODIR/rhel-${VERSION_SUFFIX}.json"
fi
if [ -f "rhel-8-beta.json" ]; then
sudo cp rhel-8-beta.json "$REPODIR"
sudo cp rhel-8-beta.json "$REPODIR/rhel-${VERSION_SUFFIX}-beta.json"
fi
# Generate all X.509 certificates for the tests