git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] t6300: fix match with insecure memory
@ 2023-08-21 20:06 Christian Hesse
  2023-08-21 20:24 ` Christian Hesse
  0 siblings, 1 reply; 14+ messages in thread
From: Christian Hesse @ 2023-08-21 20:06 UTC (permalink / raw)
  To: Git Mailing List; +Cc: Christian Hesse

From: Christian Hesse <mail@eworm.de>

Running the tests in a build environment makes gnupg print a warning:

gpg: Warning: using insecure memory!

This warning breaks the match, as `head` misses one line. Let's strip
the line, make `head` return what is expected and fix the match.

Signed-off-by: Christian Hesse <mail@eworm.de>
---
 t/t6300-for-each-ref.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/t6300-for-each-ref.sh b/t/t6300-for-each-ref.sh
index 5b434ab451..488e358c8c 100755
--- a/t/t6300-for-each-ref.sh
+++ b/t/t6300-for-each-ref.sh
@@ -1764,7 +1764,7 @@ test_expect_success GPGSSH 'setup for signature atom using ssh' '
 
 test_expect_success GPG2 'bare signature atom' '
 	git verify-commit first-signed 2>out.raw &&
-	grep -Ev "checking the trustdb|PGP trust model" out.raw >out &&
+	grep -Ev "checking the trustdb|PGP trust model|using insecure memory" out.raw >out &&
 	head -3 out >expect &&
 	tail -1 out >>expect &&
 	echo  >>expect &&
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-08-23 16:14 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-21 20:06 [PATCH 1/1] t6300: fix match with insecure memory Christian Hesse
2023-08-21 20:24 ` Christian Hesse
2023-08-21 20:25   ` [PATCH v2 " Christian Hesse
2023-08-22  7:54     ` Kousik Sanagavarapu
2023-08-22  9:04       ` Christian Hesse
2023-08-22 13:01         ` Christian Hesse
2023-08-22 13:03           ` [PATCH 1/2] t/lib-gpg: forcibly run a trustdb update Christian Hesse
2023-08-22 13:03             ` [PATCH 2/2] t/t6300: drop magic filtering Christian Hesse
2023-08-22 16:43               ` Eric Sunshine
2023-08-23  6:52                 ` [PATCH v2 " Christian Hesse
2023-08-23 13:20                   ` Kousik Sanagavarapu
2023-08-23 16:14                     ` Junio C Hamano
2023-08-23 16:02                 ` [PATCH " Junio C Hamano
2023-08-22 15:50         ` [PATCH v2 1/1] t6300: fix match with insecure memory Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).