[PATCH v2] test: add_gnupg_home should have ultimate trust on "its own" key
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed Apr 24 15:15:15 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(+)
diff --git a/test/test-lib.sh b/test/test-lib.sh
index 70d7dcfe..89f84bbe 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 --import-ownertrust
}
# Each test should start with something like this, after copyright notices:
--
2.20.1
More information about the notmuch
mailing list