]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
tests/util/grub-shell: Add halt_cmd variable to testcase namespace
authorGlenn Washburn <development@efficientek.com>
Tue, 10 Jan 2023 22:08:59 +0000 (16:08 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 19 Jan 2023 16:39:05 +0000 (17:39 +0100)
This allows test case scripts to use the appropriate halt command for
the built architecture to end execution early. Otherwise, test case
scripts have no way to know the appropriate mechanism for halting the
test case early.

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

index 2acc9e0fc147f89253e8d99ec208b8c8bbb7f711..f5a6e822fdc9544a78c6b74c7a660cbbc6cafcd1 100644 (file)
@@ -331,6 +331,8 @@ fi
 cfgfile="$work_directory/grub.cfg"
 cat <<EOF >${cfgfile}
 grubshell=yes
+halt_cmd=${halt_cmd}
+export halt_cmd
 enable_progress_indicator=0
 export enable_progress_indicator
 EOF