From: Glenn Washburn Date: Sat, 19 Aug 2023 06:59:17 +0000 (-0500) Subject: tests/util/grub-shell-luks-tester: Allow setting timeout X-Git-Tag: grub-2.12~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fff2e9ee833ed640d62672110da7341593769e33;p=thirdparty%2Fgrub.git tests/util/grub-shell-luks-tester: Allow setting timeout Allow using the envvar GRUB_SHELL_LUKS_TIMEOUT to change the default timeout. If not specified, use value of GRUB_SHELL_DEFAULT_TIMEOUT. And if that is not specified, fallback to original 600s timeout. 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 3f9d1be17..8926cbc96 100644 --- a/tests/util/grub-shell-luks-tester.in +++ b/tests/util/grub-shell-luks-tester.in @@ -38,6 +38,7 @@ keyfile_size= KEYFILE_SIZE_MAX=4096 debug="${GRUB_SHELL_LUKS_DEFAULT_DEBUG:-$GRUB_TEST_DEFAULT_DEBUG}" +GRUB_SHELL_LUKS_TIMEOUT=${GRUB_SHELL_LUKS_TIMEOUT:-${GRUB_SHELL_DEFAULT_TIMEOUT:-600s}} # Usage: usage # Print the usage. @@ -134,7 +135,7 @@ done [ "${debug:-0}" -gt 1 ] && set -x -grub_shell_opts="$grub_shell_opts --timeout=600s" +grub_shell_opts="$grub_shell_opts --timeout=${GRUB_SHELL_LUKS_TIMEOUT}" if [ "${debug:-0}" -gt 2 ]; then grub_shell_opts="$grub_shell_opts --qemu-opts=-nographic"