1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

tests: Use gpgconf to set the ssh socket envvar.

* tests/openpgp/ssh.scm ("SSH_AUTH_SOCK"): Use gpgconf.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2016-08-04 13:04:28 +02:00
parent db6f3eb926
commit 0c2a745a2b
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -23,7 +23,9 @@
(if (string=? "" GNUPGHOME)
(error "GNUPGHOME not set"))
(setenv "SSH_AUTH_SOCK" (path-join GNUPGHOME "S.gpg-agent.ssh") #t)
(setenv "SSH_AUTH_SOCK"
(call-check `(,(tool 'gpgconf) --null --list-dirs agent-ssh-socket))
#t)
(define SSH-ADD #f)
(catch (skip "ssh-add not found")