[darcs-devel] [patch1526] resolve issue2504: skip ssh tests that require passwor...

Ben Franksen bugs at darcs.net
Sun Jan 8 20:50:48 UTC 2017


Ben Franksen <ben.franksen at 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 at 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 at darcs.net>
<http://bugs.darcs.net/patch1526>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-preview.txt
Type: text/x-darcs-patch
Size: 315 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20170108/4f871059/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resolve-issue2504_-skip-ssh-tests-that-require-password-input.dpatch
Type: application/x-darcs-patch
Size: 518 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20170108/4f871059/attachment-0001.bin>
-------------- next part --------------
.





More information about the darcs-devel mailing list