test/ubi-wsl.sh: add backward compatibility for composer < v146

Adjust the test case, so that it does not fail when run against older
osbuild-composer version, i.e. the one from RHEL-10 nightly CI pipelines.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2025-07-22 11:52:58 +02:00 committed by Tomáš Hozza
parent ccb4a3df88
commit 790a9d4e8b

View file

@ -134,6 +134,14 @@ greenprint "📀 Getting disk image"
get_compose_image "$COMPOSE_ID" get_compose_image "$COMPOSE_ID"
DISK="$COMPOSE_ID-image.wsl" DISK="$COMPOSE_ID-image.wsl"
# backward compatibility for RHEL nightly tests
if ! nvrGreaterOrEqual "osbuild-composer" "146"; then
DISK="$COMPOSE_ID-disk.tar.gz"
fi
greenprint "Looking for disk image: $DISK"
if [ ! -f "$DISK" ]; then if [ ! -f "$DISK" ]; then
redprint "Disk image missing from results" redprint "Disk image missing from results"
exit 1 exit 1