]> git.notmuchmail.org Git - notmuch/commitdiff
test/crypto: hard code fingerprint
authorDavid Bremner <david@tethera.net>
Thu, 8 Sep 2016 12:03:15 +0000 (09:03 -0300)
committerDavid Bremner <david@tethera.net>
Thu, 8 Sep 2016 12:08:09 +0000 (09:08 -0300)
Originally the intent was to make the test more robust against changing
test keys. It turns out that (unscientifically) gpg --with-colons output
changes more often than our test key. Rather than making the script more
complex, just hard code the fingerprint.

This fixes Debian bug #847013; I expect similar test failures as other
distros adopt gnupg 2.1.15

test/T350-crypto.sh

index 3656cce951ca08263ae6cdfe8c0acf8ceb38f515..96349fa04986d1b806a74c8fe6ad2f639d5e4238 100755 (executable)
@@ -25,8 +25,8 @@ add_gnupg_home ()
 ##################################################
 
 add_gnupg_home
-# get key fingerprint
-FINGERPRINT=$(gpg --no-tty --list-secret-keys --with-colons --fingerprint | grep '^fpr:' | cut -d: -f10)
+# Change this if we ship a new test key
+FINGERPRINT="5AEAB11F5E33DCE875DDB75B6D92612D94E46381"
 
 test_expect_success 'emacs delivery of signed message' \
 'emacs_fcc_message \