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:
parent
ccb4a3df88
commit
790a9d4e8b
1 changed files with 8 additions and 0 deletions
|
|
@ -134,6 +134,14 @@ greenprint "📀 Getting disk image"
|
|||
get_compose_image "$COMPOSE_ID"
|
||||
|
||||
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
|
||||
redprint "Disk image missing from results"
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue