]> git.ipfire.org Git - thirdparty/grub.git/commit
tests: Allow turning on shell tracing from environment variables
authorGlenn Washburn <development@efficientek.com>
Sat, 21 Jan 2023 06:10:44 +0000 (00:10 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 2 Feb 2023 18:44:56 +0000 (19:44 +0100)
commitcb7afebc362219a8f595658a3059d75e1988e8a6
treeeb15f30b4f92094eaa29e2e89e5c24911626d0a5
parent7f888b6424f699bb45e91dd6d735817a23396002
tests: Allow turning on shell tracing from environment variables

This allows turning on shell tracing for grub-shell and grub-fs-tester
when its not practical or not possible to use command line arguments
(e.g. from "make check"). Turn on tracing when the envvar is an integer
greater than 1, since these can generate a lot of output. Since this
change uses the environment variables to set the default value for debug
in grub-shell, this allows enabling grub-shell's debug mode which will
preserve various generated output files that are helpful for debugging
tests.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
tests/util/grub-fs-tester.in
tests/util/grub-shell.in