From 790a9d4e8bbe8bce67a589a6ebf26db564efbf98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozza?= Date: Tue, 22 Jul 2025 11:52:58 +0200 Subject: [PATCH] test/ubi-wsl.sh: add backward compatibility for composer < v146 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- test/cases/ubi-wsl.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/cases/ubi-wsl.sh b/test/cases/ubi-wsl.sh index 3019c8f0f..d9478fd9c 100755 --- a/test/cases/ubi-wsl.sh +++ b/test/cases/ubi-wsl.sh @@ -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