]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't skip epg tests (Bug#23561)
authorNoam Postavsky <npostavs@gmail.com>
Fri, 30 Jun 2017 03:28:15 +0000 (23:28 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Thu, 6 Jul 2017 23:54:07 +0000 (19:54 -0400)
* test/lisp/epg-tests.el (with-epg-tests): Ignore REQUIRE-PASSPHRASE
parameter, since we supply the passphrase via pinentry-program for all
GPG versions (as of 2017-02-28 "Fix epg-tests with dummy-pinentry
program (Bug#23619)").
(epg-tests-program-alist-for-passphrase-callback): Remove.

test/lisp/epg-tests.el

index 9dd093e7927043be4c87782351ed1d9dfb78f350..36db47880112bb26a3e41c84c7957b2325094f2a 100644 (file)
   (expand-file-name "data/epg" (getenv "EMACS_TEST_DIRECTORY"))
   "Directory containing epg test data.")
 
-(defconst epg-tests-program-alist-for-passphrase-callback
-  '((OpenPGP
-     nil
-     ("gpg" . "1.4.3"))))
-
-(defun epg-tests-find-usable-gpg-configuration (&optional require-passphrase)
-  (epg-find-configuration
-   'OpenPGP
-   'no-cache
-   (if require-passphrase
-       epg-tests-program-alist-for-passphrase-callback)))
+(defun epg-tests-find-usable-gpg-configuration (&optional _require-passphrase)
+  (epg-find-configuration 'OpenPGP 'no-cache))
 
 (defun epg-tests-passphrase-callback (_c _k _d)
   ;; Need to create a copy here, since the string will be wiped out