test/ostree: fail on unsupported distros

If the ostree test was run on an unsupported distro, it failed but with a
very weird error message. This commit makes the test fail fast and with a
nice message.
This commit is contained in:
Ondřej Budai 2020-11-10 09:47:16 +01:00 committed by msehnout
parent 4b19095b20
commit bb3efe0435

View file

@ -29,7 +29,9 @@ case "${ID}-${VERSION_ID}" in
# When 8.3 was released, it wasn't available on all RH internal
# mirrors, therefore the Boston mirror is hardcoded.
BOOT_LOCATION="http://download.eng.bos.redhat.com/released/rhel-8/RHEL-8/8.3.0/BaseOS/x86_64/os/";;
*) ;;
*)
echo "unsupported distro: ${ID}-${VERSION_ID}"
exit 1;;
esac