1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00

Only search netrc in the netrc tests

* test/lisp/auth-source-tests.el
(auth-source-test-netrc-create-secret): Only search netrc.
This commit is contained in:
Lars Ingebrigtsen 2021-09-21 05:28:40 +02:00
parent 3dabd27210
commit bbef979ae1

View file

@ -376,7 +376,8 @@
(md5 (concat (prin1-to-string process-environment) passwd))
auth-info
(car (auth-source-search
:max 1 :host host :require '(:user :secret) :create t))
:max 1 :host host :require '(:user :secret) :create t
:type 'netrc))
auth-passwd (plist-get auth-info :secret)
auth-passwd (if (functionp auth-passwd)
(funcall auth-passwd)