Test/cross-distro: add version check for cross-building el8 on el9

The issue has been fixed in 9.6 0day ZStream in v132.1, so running the
test against anything older will make the test fail. This is currently
the case for RHEL-9-nightly pipeline.

Let's solve this annoyance.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2025-04-30 13:45:56 +02:00 committed by Achilleas Koutsou
parent e621386caf
commit b0d2d47180

View file

@ -331,6 +331,10 @@ case $ID in
ensure_subscription
case $MAJOR in
9)
if ! nvrGreaterOrEqual "osbuild-composer" "132.1"; then
yellowprint "WARNING: osbuild-composer version lower than 132.1 is known to have issues with el8 on el9 cross-distro builds. Skipping test."
exit 0
fi
# There are no new RHEL-8 releases, so just use the distro alias
test_cross_build_distro "rhel-8"
;;