diff --git a/test/cases/image_tests.sh b/test/cases/image_tests.sh index b5c6f3321..b87c26d80 100755 --- a/test/cases/image_tests.sh +++ b/test/cases/image_tests.sh @@ -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