Conditionally skip container test when using older osbuild version

Introduced in
https://github.com/osbuild/osbuild-composer/pull/3336
This commit is contained in:
Alexander Todorov 2023-04-19 11:23:43 +03:00 committed by Ondřej Budai
parent 3686223a40
commit 2c23894e2a
2 changed files with 18 additions and 0 deletions

View file

@ -141,6 +141,11 @@ else
exit 1
fi
if ! nvrGreaterOrEqual "osbuild" "83"; then
echo "INFO: osbuild version is older. Exiting test here"
exit 0
fi
# Check that the local name was set in the names array
FEDORA_NAME_EXISTS=$(jq -e --arg name "${FEDORA_LOCAL_NAME}" 'any(."container-images"[].Names[] | select(. != null and . == $name); .)' <<< "${INFO}")