tests: create gpg homedir on the fly
commitb41a36e635803f1dc011007e836ae244f9ae04c1
authorChristian Hesse <mail@eworm.de>
Fri, 12 Dec 2014 08:50:12 +0000 (12 09:50 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Dec 2014 18:23:36 +0000 (12 10:23 -0800)
treed11e27b12de54bc23c5d9e1f343accd1168b7f78
parent8213d87a83867809f490e8d683ebbaa857547189
tests: create gpg homedir on the fly

GnuPG 2.1 homedir looks different, so just create it on the fly by
importing needed private and public keys and ownertrust.

This solves an issue with gnupg 2.1 running interactive pinentry
when old secret key is present.

Signed-off-by: Christian Hesse <mail@eworm.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-gpg.sh
t/lib-gpg/ownertrust [new file with mode: 0644]
t/lib-gpg/random_seed [deleted file]
t/lib-gpg/trustdb.gpg [deleted file]