Fedora arm-efi and riscv64-efi are verbose and add a garbage line when shutting down. Ignore it
Signed-off-by: Vladimir Serbinenko <phco...@gmail.com> --- tests/grub_cmd_set_date.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/grub_cmd_set_date.in b/tests/grub_cmd_set_date.in index 17673cd8a..153609399 100644 --- a/tests/grub_cmd_set_date.in +++ b/tests/grub_cmd_set_date.in @@ -21,7 +21,7 @@ out=$(cat <<EOF | @builddir@/grub-shell insmod datehook date if [ \$YEAR = 2004 -a \$MONTH = 4 -a \$DAY = 4 -a \$HOUR = 20 -a \$MINUTE = 47 ]; then - hello + echo Back to 2004 halt fi date 2004-04-04 20:47:00 @@ -29,7 +29,7 @@ reboot EOF ) -if [ "$(echo "$out" | tail -n 1)" != "Hello World" ]; then +if [ "$(echo "$out" | tail -n 3|grep "Back to 2004")" != "Back to 2004" ]; then echo "Test failed: $out" exit 1 fi -- 2.39.2 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel