test: use DISTRO_CODE to select tests case

Using DISTRO_CODE simplifies test case selection and allows to test
different distro than the one test is running on.
This is used to run tests for RHEL 9.0 on F33 or RHEL 8.4
This commit is contained in:
Jozef Mikovic 2021-03-23 11:57:45 +01:00 committed by Tom Gundersen
parent af1a2b5cd4
commit 165ecafeb2
7 changed files with 94 additions and 37 deletions

View file

@ -14,6 +14,11 @@
set -euxo pipefail
#TODO: remove this once there is rhel9 support for necessary image types
if [[ $DISTRO_CODE == rhel_90 ]]; then
echo "Skipped"
exit 0
fi
#
# Provision the software under tet.