darcs

Patch 1526 resolve issue2504: skip ssh tests that require passwor...

Title resolve issue2504: skip ssh tests that require passwor...
Superseder Nosy List bfrk
Related Issues
Status accepted Assigned To
Milestone 2.14.0

Created on 2017-01-08.19:57:01 by bfrk, last changed 2017-03-15.17:48:02 by bfrk.

Files
File name Status Uploaded Type Edit Remove
patch-preview.txt bfrk, 2017-01-08.19:57:00 text/x-darcs-patch
patch-preview.txt bfrk, 2017-01-08.20:50:47 text/x-darcs-patch
resolve-issue2504_-skip-ssh-tests-that-require-password-input.dpatch bfrk, 2017-01-08.19:57:00 application/x-darcs-patch
resolve-issue2504_-skip-ssh-tests-that-require-password-input.dpatch bfrk, 2017-01-08.20:50:47 application/x-darcs-patch
unnamed bfrk, 2017-01-08.19:57:00 text/plain
unnamed bfrk, 2017-01-08.20:50:47 text/plain
See mailing list archives for discussion on individual patches.
Messages
msg19331 (view) Author: bfrk Date: 2017-01-08.19:57:00
This seems to fix the issue for me, but YMMV.

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

patch 6cb8235250ece24247c0707256211b27f9bb6e3d
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
msg19333 (view) Author: bfrk Date: 2017-01-08.20:11:19
Ignore this patch, it causes the ssh tests to be always skipped. That
was not the idea. (I was confused about the meaning of SSH_AUTH_SOCK)
msg19334 (view) Author: bfrk Date: 2017-01-08.20:50:47
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
msg19369 (view) Author: bfrk Date: 2017-03-15.17:48:01
Self accept (test system).
History
Date User Action Args
2017-01-08 19:57:01bfrkcreate
2017-01-08 20:11:19bfrksetmessages: + msg19333
2017-01-08 20:50:48bfrksetfiles: + patch-preview.txt, resolve-issue2504_-skip-ssh-tests-that-require-password-input.dpatch, unnamed
messages: + msg19334
2017-02-26 09:09:51bfrksetstatus: needs-screening -> needs-review
2017-03-15 17:48:02bfrksetstatus: needs-review -> accepted
messages: + msg19369
milestone: 2.14.0