]> git.eshelyaron.com Git - emacs.git/commit
Don't test symmetric operations on gpg 2.0 (Bug#23561)
authorNoam Postavsky <npostavs@gmail.com>
Sun, 15 Jul 2018 13:37:59 +0000 (09:37 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Sun, 15 Jul 2018 20:26:22 +0000 (16:26 -0400)
commit7acb87ab97082026e692e1d1d679df2313148343
tree19842b8c3c003a01e953b17445d5b11c49518598
parent95931085fafc67aebc62ec0c672d29bfbecd1e8a
Don't test symmetric operations on gpg 2.0 (Bug#23561)

On the Hydra test machines, which have gpg 2.0, the symmetric tests
fail.
* test/lisp/epg-tests.el (with-epg-tests): Pass REQUIRE-PUBLIC-KEY to
`epg-tests-find-usable-gpg-configuration' and call it before
`epg-make-context' so that the latter uses the resulting cached
config.
(epg-tests-find-usable-gpg-configuration): Only allow gpg 2.0 for
symmetric operations.  Clear `epg--configurations' and don't pass
NO-CACHE to `epg-find-configuration'.
(epg-tests--config-program-alist): Use copy-tree to avoid modifying
the epg-config--program-alist cons values.
* test/lisp/emacs-lisp/package-tests.el (package-test-signed): Allow
running with gpg 2.0.
test/lisp/emacs-lisp/package-tests.el
test/lisp/epg-tests.el