From: Glenn Washburn Date: Thu, 16 Feb 2023 07:15:00 +0000 (-0600) Subject: tests: Return hard error for functional test when unicode.pf2 does not exist X-Git-Tag: grub-2.12-rc1~129 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=974ef9231ebb6c8b8d9278d1559d69fd86611f51;p=thirdparty%2Fgrub.git tests: Return hard error for functional test when unicode.pf2 does not exist The functional test requires unicode.pf2 to run successfully, so explicitly have the test return ERROR when its not found. Signed-off-by: Glenn Washburn Tested-by: Thomas Schmitt Reviewed-by: Daniel Kiper --- diff --git a/tests/grub_func_test.in b/tests/grub_func_test.in index c67f9e422..d43427c56 100644 --- a/tests/grub_func_test.in +++ b/tests/grub_func_test.in @@ -3,6 +3,11 @@ set -e . "@builddir@/grub-core/modinfo.sh" +if [ ! -e "@builddir@/"unicode.pf2 ]; then + echo "Functional test requires grub-mkfont support" + exit 99 +fi + case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in # PLATFORM: Max RAM is 256M mips-qemu_mips | mipsel-qemu_mips)