]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix gpg-agent killing in mml-sec-tests
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 25 Dec 2020 19:56:22 +0000 (20:56 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 25 Dec 2020 19:56:22 +0000 (20:56 +0100)
* test/lisp/gnus/mml-sec-tests.el (mml-sec-test--kill-gpg-agent):
Identify the gpg-agent more successfully after the resource dir
makeover.

test/lisp/gnus/mml-sec-tests.el

index a6002b4d51e4debe6d28d5ad27482afcd0d2f4ca..20d8e03c38590c48e1bda8299d6c17e8aa5358bb 100644 (file)
@@ -883,7 +883,8 @@ So the second decryption fails."
                  (equal (cdr (assq 'comm atts)) "gpg-agent")
                  (string-match
                   (concat "homedir.*"
-                          (regexp-quote (ert-resource-directory)))
+                          (regexp-quote (directory-file-name
+                                         (ert-resource-directory))))
                   (cdr (assq 'args atts))))
         (call-process "kill" nil nil nil (format "%d" pid))))))