grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/2] tests: Return hard error for functional test when unicode.pf


From: Glenn Washburn
Subject: [PATCH 1/2] tests: Return hard error for functional test when unicode.pf2 does not exist
Date: Thu, 16 Feb 2023 01:15:00 -0600

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 <development@efficientek.com>
---
 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 c67f9e4225..d43427c568 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.34.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]