test: disable non supported tests

some scripts skip the test if it's not supported for that
distro-version. Disable them in gitlab-ci.yml so we don't waste CI
resources.

To disable them, we are using the `rules` on each job with a regex
pattern. Using `=~` (pattern matches) as a  WHITELIST and `!~` (pattern
does not match) as a BLACKLIST.
This commit is contained in:
Juan Abia 2022-08-09 14:30:36 +02:00 committed by Jakub Rusz
parent 8982ab2018
commit 1873c561cf
14 changed files with 52 additions and 104 deletions

View file

@ -14,16 +14,6 @@
# Get OS data.
source /usr/libexec/osbuild-composer-test/set-env-variables.sh
case "${ID}-${VERSION_ID}" in
"rhel-8.6" | "rhel-9.0" | "centos-9" | "centos-8")
;;
*)
echo "$0 is not enabled for ${ID}-${VERSION_ID} skipping..."
exit 0
;;
esac
set -xeuo pipefail
function get_build_info() {