[prev in list] [next in list] [prev in thread] [next in thread] 

List:       darcs-devel
Subject:    [darcs-devel] [patch1526] resolve issue2504: skip ssh tests that require passwor...
From:       Ben Franksen <bugs () darcs ! net>
Date:       2017-01-08 20:50:48
Message-ID: 0MMHDp-1cPVmM330f-007zP5 () mrelayeu ! kundenserver ! de
[Download RAW message or body]

Ben Franksen <ben.franksen@online.de> added the comment:

Ok, here is an amended version. The idea is:

When testing whether ssh works (without user interaction, now), we call it
with -x (no X11 forwarding, which disables ssh-askpass) and also
-o=NumberofPasswordPrompts=0 (to disable command line prompt for password).

With this patch I can run

> ./dist/build/darcs-test/darcs-test -n --shell=no --unit=no --tests=ssh
Using darcs executable in
/home/ben/src/darcs/screened/dist/build/darcs/darcs
Locale encoding is UTF-8
network/ssh.sh (Darcs2) (PatienceDiff): [Success]
[...]

since I have an ssh agent running and already entered my passphrase.
However, when I (temporarily) disable the agent by unsetting SSH_AUTH_SOCK I
get 

> SSH_AUTH_SOCK= ./dist/build/darcs-test/darcs-test -n --shell=no --unit=no
--tests=ssh
Using darcs executable in
/home/ben/src/darcs/screened/dist/build/darcs/darcs
Locale encoding is UTF-8
network/ssh.sh (Darcs2) (PatienceDiff): [Skipped]
[...]

1 patch for repository http://darcs.net/screened:

patch cfac8592c40d18ce61da4521635e6f7e70f3c007
Author: Ben Franksen <benjamin.franksen@helmholtz-berlin.de>
Date:   Sun Jan  8 21:44:53 CET 2017
  * resolve issue2504: skip ssh tests that require password input

__________________________________
Darcs bug tracker <bugs@darcs.net>
<http://bugs.darcs.net/patch1526>
__________________________________
["patch-preview.txt" (text/x-darcs-patch)]


[resolve issue2504: skip ssh tests that require password input
Ben Franksen <benjamin.franksen@helmholtz-berlin.de>**20170108204453
 Ignore-this: b808ae8991e628c6991aff298784e6c
] hunk ./tests/network/sshlib 41
-${SSH} ${REMOTE} true || exit 200
+${SSH} -x -o=NumberofPasswordPrompts=0 ${REMOTE} true || exit 200


["resolve-issue2504_-skip-ssh-tests-that-require-password-input.dpatch" (application/x-darcs-patch)]
["unnamed" (text/plain)]

.





_______________________________________________
darcs-devel mailing list
darcs-devel@darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic