Mercurial > hg
diff tests/test-gpg.t @ 29790:94fb0458a791
test-gpg: start gpg-agent under control of the test runner
GnuPG v2 automatically starts gpg-agent. We should kill the daemon process.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 14 Aug 2016 17:01:33 +0900 |
parents | 66e038fb3c0d |
children | 28591876fa63 |
line wrap: on
line diff
--- a/tests/test-gpg.t Sun Aug 14 16:49:47 2016 +0900 +++ b/tests/test-gpg.t Sun Aug 14 17:01:33 2016 +0900 @@ -12,6 +12,13 @@ $ GNUPGHOME="$TESTTMP/gpg"; export GNUPGHOME $ cp -R "$TESTDIR/gpg" "$GNUPGHOME" +Start gpg-agent, which is required by GnuPG v2 + +#if gpg2 + $ gpg-connect-agent -q --subst /serverpid '/echo ${get serverpid}' /bye \ + > >> $DAEMON_PIDS +#endif + $ hg init r $ cd r $ echo foo > foo