* bug#33439: emacs-26 branch: epg-decrypt-1 test failure on Fedora 29
@ 2018-11-20 2:09 Paul Eggert
2018-12-15 0:49 ` Glenn Morris
0 siblings, 1 reply; 3+ messages in thread
From: Paul Eggert @ 2018-11-20 2:09 UTC (permalink / raw)
To: 33439
The emacs-26 branch has a test failure on my Fedora 29 x86-64 platform.
test/lisp/epg-tests.el fails the epg-decrypt-1 test. The symptom is
(epg-error "Decryption failed" ""). I find this stuff to be a pain to
debug and hope that someone else can debug it (or that the test be
removed), but apparently Emacs's invocation of this this shell command:
"/usr/bin/gpg2" "--no-tty" "--status-fd" "1" "--yes" "--homedir"
"/tmp/epg-tests-homedir2yvvtL" "--command-fd" "0" "--output"
"/tmp/epg-outputsZghM1" "--decrypt" "--" "/tmp/epg-input9ZuUDT"
causes this output to be generated:
[GNUPG:] NEED_PASSPHRASE_SYM 3 3 2
[GNUPG:] ERROR get_passphrase 85
[GNUPG:] MISSING_PASSPHRASE
[GNUPG:] BEGIN_DECRYPTION
[GNUPG:] DECRYPTION_FAILED
[GNUPG:] END_DECRYPTION
and this causes epg.el to report a decryption failure.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#33439: emacs-26 branch: epg-decrypt-1 test failure on Fedora 29
2018-11-20 2:09 bug#33439: emacs-26 branch: epg-decrypt-1 test failure on Fedora 29 Paul Eggert
@ 2018-12-15 0:49 ` Glenn Morris
2018-12-15 0:55 ` Paul Eggert
0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2018-12-15 0:49 UTC (permalink / raw)
To: Paul Eggert; +Cc: 33439
Does this work?
--- a/test/lisp/epg-tests.el
+++ b/test/lisp/epg-tests.el
@@ -108,6 +108,8 @@ epg-tests-passphrase-callback
(ert-deftest epg-decrypt-1 ()
(with-epg-tests (:require-passphrase t)
+ (with-temp-file (expand-file-name "gpg.conf" epg-tests-home-directory)
+ (insert "ignore-mdc-error"))
(should (equal "test"
(epg-decrypt-string epg-tests-context "\
-----BEGIN PGP MESSAGE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#33439: emacs-26 branch: epg-decrypt-1 test failure on Fedora 29
2018-12-15 0:49 ` Glenn Morris
@ 2018-12-15 0:55 ` Paul Eggert
0 siblings, 0 replies; 3+ messages in thread
From: Paul Eggert @ 2018-12-15 0:55 UTC (permalink / raw)
To: Glenn Morris; +Cc: 33439
On 12/14/18 4:49 PM, Glenn Morris wrote:
> + (with-temp-file (expand-file-name "gpg.conf" epg-tests-home-directory)
> + (insert "ignore-mdc-error"))
Yes, that causes the test to pass for Fedora 29 x86-64 (when I applied
it to current emacs-26 branch). Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-12-15 0:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-20 2:09 bug#33439: emacs-26 branch: epg-decrypt-1 test failure on Fedora 29 Paul Eggert
2018-12-15 0:49 ` Glenn Morris
2018-12-15 0:55 ` Paul Eggert
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).