From 974ef9231ebb6c8b8d9278d1559d69fd86611f51 Mon Sep 17 00:00:00 2001 From: Glenn Washburn Date: Thu, 16 Feb 2023 01:15:00 -0600 Subject: [PATCH] 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 --- tests/grub_func_test.in | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.47.3