mock-ssh-server icon indicating copy to clipboard operation
mock-ssh-server copied to clipboard

Allow the Server to run commands reading from stdin

Open jvrsantacruz opened this issue 8 years ago • 3 comments

Many commands such as git-receive-packs do not fit the 'run and get all output' model that it is offered through the Python's Popen.communicate() API. Such commands exchange messages with the remote side via stdin/stdout alternatively depending on each other's output.

This commit should allow any command to run in this otherwise very neat server. The rewrite of the process model was necessary in order to be able to use it as git remote ssh server for testing gi interactions involving key handling, timeouts etc...

jvrsantacruz avatar Apr 04 '17 19:04 jvrsantacruz

It seems that 1 py27 test is failing in Travis but not in my workstation. I'll try so check this somehow.

jvrsantacruz avatar Apr 04 '17 19:04 jvrsantacruz

@jvrsantacruz would you like to update this PR to be mergable?

Spitfire1900 avatar Jun 05 '23 02:06 Spitfire1900