test/cases: add RHEL 9.0 and CentOS 9 cases to test scripts

This commit is contained in:
Achilleas Koutsou 2021-10-27 16:05:00 +02:00 committed by Ondřej Budai
parent 1dd139e758
commit a025601b85
8 changed files with 38 additions and 18 deletions

View file

@ -17,10 +17,15 @@ source /etc/os-release
# Provision the software under test.
/usr/libexec/osbuild-composer-test/provision.sh
if [[ "${ID}-${VERSION_ID}" != "rhel-8.6" && "${ID}-${VERSION_ID}" != "rhel-9.0" ]]; then
echo "$0 is only enabled for rhel-8.6 and rhel-9.0; skipping..."
exit 0
fi
case "${ID}-${VERSION_ID}" in
"rhel-8.6" | "rhel-9.0" | "centos-9")
;;
*)
echo "$0 is not enabled for ${ID}-${VERSION_ID} skipping..."
exit 0
;;
esac
set -xeuo pipefail