]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
tests: Fix help test to reflect updated help output
authorGlenn Washburn <development@efficientek.com>
Tue, 10 Jan 2023 21:02:15 +0000 (15:02 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 19 Jan 2023 16:39:04 +0000 (17:39 +0100)
Commit f5759a878 (normal/help: Add paging instructions to normal and help
prompts) changed the output of the help command, which broke the help
test. This change allows the test to pass.

On the occasion do s/outpu/output/.

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

index b08cf201382e043e6b2fc07fd6f7a410aa051dca..9c8ca52c860b5b2282a092784c7ab6e03c1d3bc5 100644 (file)
@@ -8,9 +8,12 @@ Show a help message.
 
 -h, --help              Display this help and exit.
 -u, --usage             Display the usage of this command and exit.
+
+
+To enable less(1)-like paging, \"set pager=1\".
 Hello World"
-outpu="$(echo 'help help; hello' | @builddir@/grub-shell)"
+output="$(echo 'help help; hello' | @builddir@/grub-shell)"
 
-if [ "$template" != "$outpu" ]; then
+if [ "$template" != "$output" ]; then
     exit 1
 fi