image-tests: skip azure-rhui test on rhel-86

This commit is contained in:
Jakub Rusz 2022-06-29 12:54:43 +02:00 committed by jabia99
parent d1b6a6455c
commit 358e58f3d3

View file

@ -49,7 +49,14 @@ get_test_cases () {
TEST_CASE_SELECTOR="${DISTRO_CODE/-/_}-${ARCH}"
pushd $IMAGE_TEST_CASES_PATH > /dev/null
ALL_CASES=$(ls "$TEST_CASE_SELECTOR"*.json)
SKIP_CASES=$(jq -r 'if (.manifest.sources."org.osbuild.ostree" != null) then input_filename else empty end' "${TEST_CASE_SELECTOR}"*.json)
SKIP_OSTREE=$(jq -r 'if (.manifest.sources."org.osbuild.ostree" != null) then input_filename else empty end' "${TEST_CASE_SELECTOR}"*.json)
# skip azure_rhui test on RHEL-8.6 only
if [[ "$DISTRO_CODE" =~ "rhel-86" ]]; then
SKIP_AZURE=$(grep azure_rhui <<< "$ALL_CASES")
SKIP_CASES=("${SKIP_OSTREE[@]}" "$SKIP_AZURE")
else
SKIP_CASES=("${SKIP_OSTREE[@]}")
fi
mapfile -t TEST_CASES < <(grep -vxFf <(printf '%s\n' "${SKIP_CASES[@]}") <(printf '%s\n' "${ALL_CASES[@]}"))
echo "${TEST_CASES[@]}"
popd > /dev/null