From: Vladimir Serbinenko <phcoder@gmail.com>
To: grub-devel@gnu.org
Cc: Vladimir Serbinenko <phcoder@gmail.com>
Subject: [PATCH 6/9] cmd_set_date: Ignore garbage line at shutdown
Date: Wed, 11 Sep 2024 12:37:32 +0300 [thread overview]
Message-ID: <20240911093735.1701-6-phcoder@gmail.com> (raw)
In-Reply-To: <20240911093735.1701-1-phcoder@gmail.com>
Fedora arm-efi and riscv64-efi are verbose and add a garbage line
when shutting down. Ignore it
Signed-off-by: Vladimir Serbinenko <phcoder@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
next prev parent reply other threads:[~2024-09-11 9:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-11 9:37 [PATCH 1/9] grub-shell: Support riscv64-efi Vladimir Serbinenko
2024-09-11 9:37 ` [PATCH 2/9] grub-shell: Support Fedora path for ovmf32 Vladimir Serbinenko
2024-09-11 9:37 ` [PATCH 3/9] grub-shell: Update qemu name of the machine Vladimir Serbinenko
2024-09-11 9:37 ` [PATCH 4/9] grub-shell: Temporarily use reboot on fuloong2e Vladimir Serbinenko
2024-09-11 9:37 ` [PATCH 5/9] grub-shell: Support Fedora arm-efi Vladimir Serbinenko
2024-09-11 9:37 ` Vladimir Serbinenko [this message]
2024-09-19 21:58 ` [PATCH 6/9] cmd_set_date: Ignore garbage line at shutdown Glenn Washburn
2024-09-11 9:37 ` [PATCH 7/9] partmap_test: Accept hd1 on arm-efi Vladimir Serbinenko
2024-09-11 9:37 ` [PATCH 8/9] grub-shell: Ignore trailing garbage on loongarch64-efi Vladimir Serbinenko
2024-09-11 9:37 ` [PATCH 9/9] grub-shell: Explicitly specify firmware for i386-ieee1275 Vladimir Serbinenko
2024-09-19 22:16 ` Glenn Washburn
2024-09-19 21:50 ` [PATCH 1/9] grub-shell: Support riscv64-efi Glenn Washburn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240911093735.1701-6-phcoder@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.