[PATCH v3] test: add_gnupg_home should have ultimate trust on "its own" key
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed Apr 24 16:23:43 PDT 2019
The typical use case for gpg is that if you control a secret key, you
mark it with "ultimate" ownertrust.
This bizarrely opaque --import-ownertrust mechanism is GnuPG's
standard mechanism to set up ultimate ownertrust (the ":6" means
"ultimate", for whatever reason).
---
test/test-lib.sh | 1 +
1 file changed, 1 insertion(+)
This differs from v2 in that it adds the --quiet flag, so that the
tests don't have noisy output like "gpg: inserting ownertrust of 6"
diff --git a/test/test-lib.sh b/test/test-lib.sh
index 70d7dcfe..db3ffd8d 100644
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -120,6 +120,7 @@ add_gnupg_home ()
# Change this if we ship a new test key
FINGERPRINT="5AEAB11F5E33DCE875DDB75B6D92612D94E46381"
+ printf '%s:6\n' "$FINGERPRINT" | gpg --quiet --import-ownertrust
}
# Each test should start with something like this, after copyright notices:
--
2.20.1
More information about the notmuch
mailing list