[Pkg-gnupg-commit] [gnupg2] 45/112: tests: Use gpgconf to set the ssh socket envvar.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Tue Aug 30 17:48:18 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit 0c2a745a2bc21e8f439930f7c0e5d1521c2fd44c
Author: Werner Koch <wk at gnupg.org>
Date: Thu Aug 4 13:04:28 2016 +0200
tests: Use gpgconf to set the ssh socket envvar.
* tests/openpgp/ssh.scm ("SSH_AUTH_SOCK"): Use gpgconf.
Signed-off-by: Werner Koch <wk at gnupg.org>
---
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 fe0b115..dfa1f52 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")
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list