aboutsummaryrefslogtreecommitdiffstats
path: root/tests/openpgp/ssh-import.scm
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-01-16 12:59:56 +0000
committerJustus Winter <[email protected]>2017-01-16 12:59:56 +0000
commit8b1611a9605b636db3e07a9d81016a11b318724c (patch)
treeb527fb8d0972a60398d7036ef64be431749ef0c5 /tests/openpgp/ssh-import.scm
parentagent: Ask specific SERIALNO for pksign/pkdecrypt. (diff)
downloadgnupg-8b1611a9605b636db3e07a9d81016a11b318724c.tar.gz
gnupg-8b1611a9605b636db3e07a9d81016a11b318724c.zip
tests: Improve GPGHOME handling.
* tests/openpgp/defs.scm (GPGHOME): New variable. * tests/openpgp/ssh-import.scm: Remove redundant code, use 'path-join'. * tests/openpgp/tofu.scm: Likewise. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'tests/openpgp/ssh-import.scm')
-rwxr-xr-xtests/openpgp/ssh-import.scm6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/openpgp/ssh-import.scm b/tests/openpgp/ssh-import.scm
index e8f12d36c..ad5acc5f7 100755
--- a/tests/openpgp/ssh-import.scm
+++ b/tests/openpgp/ssh-import.scm
@@ -20,10 +20,6 @@
(load (with-path "defs.scm"))
(setup-environment)
-(define GNUPGHOME (getenv "GNUPGHOME"))
-(if (string=? "" GNUPGHOME)
- (fail "GNUPGHOME not set"))
-
(setenv "SSH_AUTH_SOCK"
(call-check `(,(tool 'gpgconf) --null --list-dirs agent-ssh-socket))
#t)
@@ -55,7 +51,7 @@
car keys)
(info "Checking for issue2316...")
-(unlink (string-append GNUPGHOME "/sshcontrol"))
+(unlink (path-join GNUPGHOME "sshcontrol"))
(pipe:do
(pipe:open (path-join (in-srcdir "samplekeys")
(string-append "ssh-rsa.key"))