summaryrefslogtreecommitdiff
path: root/tests/sssh-ssshd.scm
diff options
context:
space:
mode:
authorArtyom V. Poptsov <poptsov.artyom@gmail.com>2015-10-29 15:20:39 +0300
committerArtyom V. Poptsov <poptsov.artyom@gmail.com>2015-10-29 15:20:39 +0300
commit99796a31ef53fc2f6027f60d7e78a69903dce867 (patch)
tree167e4c07b243502231d037fa9441c2886a6eec73 /tests/sssh-ssshd.scm
parenttests/sssh-ssshd.scm: Use (tests common) (diff)
downloadguile-ssh-99796a31ef53fc2f6027f60d7e78a69903dce867.tar.gz
tests/sssh-ssshd.scm: Remove extra global variables
* tests/sssh-ssshd.scm: Remove extra global variables; use constants from (tests common).
Diffstat (limited to 'tests/sssh-ssshd.scm')
-rw-r--r--tests/sssh-ssshd.scm16
1 files changed, 6 insertions, 10 deletions
diff --git a/tests/sssh-ssshd.scm b/tests/sssh-ssshd.scm
index ce04ca8..910e3a5 100644
--- a/tests/sssh-ssshd.scm
+++ b/tests/sssh-ssshd.scm
@@ -31,10 +31,6 @@
;;;
-(define *topdir* %topdir)
-(define *rsakey* %rsakey)
-(define *dsakey* %dsakey)
-
(define *test-cmd* "uname --all")
(define *srv-address* INADDR_LOOPBACK)
@@ -43,22 +39,22 @@
(define *ssshd-cmd*
(string-append
- *topdir* "/examples/ssshd.scm --detach"
+ %topdir "/examples/ssshd.scm --detach"
" --pid-file=" *srv-pid-file*
" --port=" (number->string *srv-port*)
- " --rsakey=" *rsakey*
- " --dsakey=" *dsakey*))
+ " --rsakey=" %rsakey
+ " --dsakey=" %dsakey))
(define *sssh-cmd*
(string-append
- *topdir* "/examples/sssh.scm"
- " --identity-file=" *rsakey*
+ %topdir "/examples/sssh.scm"
+ " --identity-file=" %rsakey
" --port=" (number->string *srv-port*)
" --known-hosts-file=" %knownhosts
" " (inet-ntoa *srv-address*)
" '" *test-cmd* "'"))
-(setenv "GUILE_LOAD_PATH" (string-append *topdir* "/modules"))
+(setenv "GUILE_LOAD_PATH" (string-append %topdir "/modules"))
;; We must unset `SSH_AUTH_SOCK' to prevent sssh from asking SSH agent
;; (if it is present) for keys.