tests: replace binary GPG keyrings with ASCII-armored keys
Importing PGP key public and security ring works, but we do not have all secret keys in one binary blob and all public keys in another. Instead import public and secret keys for one key pair from a text file that holds ASCII-armored export of them. Signed-off-by: Christian Hesse <mail@eworm.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
c0e0ed6efe
commit
1e3eefbc8d
@ -21,8 +21,7 @@ else
|
||||
GNUPGHOME="$(pwd)/gpghome"
|
||||
export GNUPGHOME
|
||||
gpg --homedir "${GNUPGHOME}" --import \
|
||||
"$TEST_DIRECTORY"/lib-gpg/pubring.gpg \
|
||||
"$TEST_DIRECTORY"/lib-gpg/secring.gpg
|
||||
"$TEST_DIRECTORY"/lib-gpg/keyring.gpg
|
||||
gpg --homedir "${GNUPGHOME}" --import-ownertrust \
|
||||
"$TEST_DIRECTORY"/lib-gpg/ownertrust
|
||||
test_set_prereq GPG
|
||||
|
Reference in New Issue
Block a user