tests/util/grub-shell-luks-tester: Allow GRUB_SHELL_LUKS_DEFAULT_DEBUG and GRUB_TEST_DEFAULT_DEBUG to specify the debug level to grub-shell

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Glenn Washburn 2023-07-10 22:01:19 -05:00 committed by Daniel Kiper
parent e1b97d7c37
commit 7f6149449c

View File

@ -37,6 +37,8 @@ keyfile_offset=
keyfile_size=
KEYFILE_SIZE_MAX=4096
debug="${GRUB_SHELL_LUKS_DEFAULT_DEBUG:-$GRUB_TEST_DEFAULT_DEBUG}"
# Usage: usage
# Print the usage.
usage () {
@ -350,7 +352,7 @@ if [ -n "$detached_header" ]; then
fi
# Run the test in grub-shell
@builddir@/grub-shell ${debug:+--debug} $grub_shell_opts \
@builddir@/grub-shell ${debug:+--debug=$debug} $grub_shell_opts \
--modules="$modules" --qemu-opts="$qemuopts" \
--files="${grub_testvars}=${testvars}" "$testcase" \
>$testoutput