From 488a53e106b41966ff4ef25906abe0774bae4c18 Mon Sep 17 00:00:00 2001 From: Tom Koscielniak Date: Wed, 28 May 2025 15:30:33 +0200 Subject: [PATCH] tests: Fix failing cross distro test due to osbuild/images pseudo-version The cross distro test started failing on RHEL 10.1, because the osbuild/images version was a Go pseudo-version that the sed command parsing the version did not recognize. --- test/cases/cross-distro.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cases/cross-distro.sh b/test/cases/cross-distro.sh index e4916cb2a..53cf04378 100755 --- a/test/cases/cross-distro.sh +++ b/test/cases/cross-distro.sh @@ -102,7 +102,7 @@ fi # determine the 'osbuild/images' repository version used by the osbuild-composer sudo dnf install -y golang COMPOSER_DEPS=$(go version -m /usr/libexec/osbuild-composer/osbuild-composer) -IMAGES_VERSION=$(echo "$COMPOSER_DEPS" | sed -n 's|^\t\+dep\t\+github\.com/osbuild/images\t\+\(v[0-9.]\+\)\t\+$|\1|p') +IMAGES_VERSION=$(echo "$COMPOSER_DEPS" | sed -n 's|^\t\+dep\t\+github\.com/osbuild/images\t\+\(v[0-9.a-zA-Z-]\+\)\t\+$|\1|p') if [ -z "$IMAGES_VERSION" ]; then echo "ERROR: Unable to determine osbuild/images version from osbuild-composer binary. Composer deps:" echo "$COMPOSER_DEPS"