From 88a7e64c2c38ff5d42098427e87563bceae3a4ba Mon Sep 17 00:00:00 2001 From: Glenn Washburn Date: Sat, 8 Jun 2024 21:22:31 -0500 Subject: [PATCH] tests/util/grub-shell: Print gdbinfo if on EFI platform Allow using GDB to debug a failing QEMU test. This output does not cause issues for tests because it happens before the trim line, and so will be ignored. Signed-off-by: Glenn Washburn Reviewed-by: Daniel Kiper --- tests/util/grub-shell.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in index 496e1bab3..3113cc3a2 100644 --- a/tests/util/grub-shell.in +++ b/tests/util/grub-shell.in @@ -360,6 +360,9 @@ halt_cmd=${halt_cmd} export halt_cmd enable_progress_indicator=0 export enable_progress_indicator +if [ "${grub_modinfo_platform}" == efi ]; then + gdbinfo +fi EOF