From 0c2a745a2bc21e8f439930f7c0e5d1521c2fd44c Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 4 Aug 2016 13:04:28 +0200 Subject: tests: Use gpgconf to set the ssh socket envvar. * tests/openpgp/ssh.scm ("SSH_AUTH_SOCK"): Use gpgconf. Signed-off-by: Werner Koch --- tests/openpgp/ssh.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/openpgp/ssh.scm b/tests/openpgp/ssh.scm index fe0b1150c..dfa1f5266 100755 --- a/tests/openpgp/ssh.scm +++ b/tests/openpgp/ssh.scm @@ -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") -- cgit v1.2.3