Skip to content

Commit 3f88c1b

Browse files
mackylegitster
authored andcommitted
t7510: do not fail when gpg warns about insecure memory
Depending on how gpg was built, it may issue the following message to stderr when run: Warning: using insecure memory! When the test is collecting gpg output it is therefore not enough to just match on a "gpg: " prefix it must also match on a "Warning: " prefix wherever it needs to match lines that have been produced by gpg. Signed-off-by: Kyle J. McKay <[email protected]> Acked-by: Michael J Gruber <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8e92c2c commit 3f88c1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t7510-signed-commit.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ test_expect_success GPG 'show signed commit with signature' '
7373
git show -s --show-signature initial >show &&
7474
git verify-commit -v initial >verify.1 2>verify.2 &&
7575
git cat-file commit initial >cat &&
76-
grep -v "gpg: " show >show.commit &&
77-
grep "gpg: " show >show.gpg &&
76+
grep -v -e "gpg: " -e "Warning: " show >show.commit &&
77+
grep -e "gpg: " -e "Warning: " show >show.gpg &&
7878
grep -v "^ " cat | grep -v "^gpgsig " >cat.commit &&
7979
test_cmp show.commit commit &&
8080
test_cmp show.gpg verify.2 &&

0 commit comments

Comments
 (0)