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
Attachments
|