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
1 changed files with 3 additions and 1 deletions

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")