From: Glenn Washburn Date: Tue, 10 Jan 2023 21:02:15 +0000 (-0600) Subject: tests: Fix help test to reflect updated help output X-Git-Tag: grub-2.12-rc1~165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72daccfb56ff2e46721e2b0dea9dfc99faaeaf61;p=thirdparty%2Fgrub.git 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 --- 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