From 72daccfb56ff2e46721e2b0dea9dfc99faaeaf61 Mon Sep 17 00:00:00 2001 From: Glenn Washburn Date: Tue, 10 Jan 2023 15:02:15 -0600 Subject: [PATCH] tests: Fix help test to reflect updated help output 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 Reviewed-by: Daniel Kiper --- tests/help_test.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/help_test.in b/tests/help_test.in index b08cf2013..9c8ca52c8 100644 --- a/tests/help_test.in +++ b/tests/help_test.in @@ -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 -- 2.47.2