* [PATCH] test: avoid unnecessary extraction of the test fingerprint
@ 2019-05-07 13:01 Daniel Kahn Gillmor
2019-05-08 15:55 ` Tomi Ollila
2019-05-10 10:16 ` David Bremner
0 siblings, 2 replies; 3+ messages in thread
From: Daniel Kahn Gillmor @ 2019-05-07 13:01 UTC (permalink / raw)
To: Notmuch Mail
FINGERPRINT is already exported by add_gnupg_home, so this is
unnecessary. This change also happens to get rid of the superfluous
check-trustdb spew from the test suite that looked like this:
gpg: checking the trustdb
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
---
test/T357-index-decryption.sh | 2 --
1 file changed, 2 deletions(-)
diff --git a/test/T357-index-decryption.sh b/test/T357-index-decryption.sh
index c9cd5e30..8a2d4c02 100755
--- a/test/T357-index-decryption.sh
+++ b/test/T357-index-decryption.sh
@@ -8,8 +8,6 @@ test_description='indexing decrypted mail'
##################################################
add_gnupg_home
-# get key fingerprint
-FINGERPRINT=$(gpg --no-tty --list-secret-keys --with-colons --fingerprint | grep '^fpr:' | cut -d: -f10)
# create a test encrypted message
test_begin_subtest 'emacs delivery of encrypted message'
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] test: avoid unnecessary extraction of the test fingerprint
2019-05-07 13:01 [PATCH] test: avoid unnecessary extraction of the test fingerprint Daniel Kahn Gillmor
@ 2019-05-08 15:55 ` Tomi Ollila
2019-05-10 10:16 ` David Bremner
1 sibling, 0 replies; 3+ messages in thread
From: Tomi Ollila @ 2019-05-08 15:55 UTC (permalink / raw)
To: Daniel Kahn Gillmor, Notmuch Mail
On Tue, May 07 2019, Daniel Kahn Gillmor wrote:
> FINGERPRINT is already exported by add_gnupg_home, so this is
> unnecessary. This change also happens to get rid of the superfluous
> check-trustdb spew from the test suite that looked like this:
>
> gpg: checking the trustdb
> gpg: marginals needed: 3 completes needed: 1 trust model: pgp
> gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
>
> Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
LGTM (just quick glance -- but code removal is always good thing when
possible ! ;)
(I trust dkg knows what he is doing in this matter)
Tomi
> ---
> test/T357-index-decryption.sh | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/test/T357-index-decryption.sh b/test/T357-index-decryption.sh
> index c9cd5e30..8a2d4c02 100755
> --- a/test/T357-index-decryption.sh
> +++ b/test/T357-index-decryption.sh
> @@ -8,8 +8,6 @@ test_description='indexing decrypted mail'
> ##################################################
>
> add_gnupg_home
> -# get key fingerprint
> -FINGERPRINT=$(gpg --no-tty --list-secret-keys --with-colons --fingerprint | grep '^fpr:' | cut -d: -f10)
>
> # create a test encrypted message
> test_begin_subtest 'emacs delivery of encrypted message'
> --
> 2.20.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] test: avoid unnecessary extraction of the test fingerprint
2019-05-07 13:01 [PATCH] test: avoid unnecessary extraction of the test fingerprint Daniel Kahn Gillmor
2019-05-08 15:55 ` Tomi Ollila
@ 2019-05-10 10:16 ` David Bremner
1 sibling, 0 replies; 3+ messages in thread
From: David Bremner @ 2019-05-10 10:16 UTC (permalink / raw)
To: Daniel Kahn Gillmor, Notmuch Mail
Daniel Kahn Gillmor <dkg@fifthhorseman.net> writes:
> FINGERPRINT is already exported by add_gnupg_home, so this is
> unnecessary. This change also happens to get rid of the superfluous
> check-trustdb spew from the test suite that looked like this:
>
> gpg: checking the trustdb
> gpg: marginals needed: 3 completes needed: 1 trust model: pgp
> gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
merged to master. That does indeed quiet down the noise I complained
about.
d
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-05-10 10:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-07 13:01 [PATCH] test: avoid unnecessary extraction of the test fingerprint Daniel Kahn Gillmor
2019-05-08 15:55 ` Tomi Ollila
2019-05-10 10:16 ` David Bremner
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
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 read-only IMAP folder(s) and NNTP newsgroup(s).