From: Glenn Washburn Date: Tue, 11 Jul 2023 03:01:19 +0000 (-0500) Subject: tests/util/grub-shell-luks-tester: Allow GRUB_SHELL_LUKS_DEFAULT_DEBUG and GRUB_TEST_... X-Git-Tag: grub-2.12~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f6149449ca41ee520c0d5d222379b2081d97076;p=thirdparty%2Fgrub.git 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 Reviewed-by: Daniel Kiper --- diff --git a/tests/util/grub-shell-luks-tester.in b/tests/util/grub-shell-luks-tester.in index 18920619a..850a20d6a 100644 --- a/tests/util/grub-shell-luks-tester.in +++ b/tests/util/grub-shell-luks-tester.in @@ -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