]> git.notmuchmail.org Git - notmuch/commitdiff
test: avoid unnecessary extraction of the test fingerprint
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 7 May 2019 13:01:35 +0000 (09:01 -0400)
committerDavid Bremner <david@tethera.net>
Fri, 10 May 2019 09:56:34 +0000 (06:56 -0300)
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

index c9cd5e3001043bbf330b31c7605884edb8c00cb4..8a2d4c0265a6f9b1c98b10b5727db1c87d02b0ce 100755 (executable)
@@ -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'