Update docs on what is needed for the transfer kitten

This commit is contained in:
Kovid Goyal 2023-07-20 20:00:04 +05:30
parent 15978c9c60
commit 34dfd1881f
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 9 additions and 6 deletions

View file

@ -20,12 +20,15 @@ to transfer only changes to large files.
.. seealso:: See the :doc:`remote_file` kitten
.. note::
This kitten (which practically means kitty) must be installed on the other
machine as well. If that is not possible you can use the :doc:`remote_file`
kitten instead. Or write your own script to use the underlying
:doc:`file transfer protocol </file-transfer-protocol>`.
This kitten must be installed on the other machine. The easiest way to do so
is to ssh into it using the :doc:`ssh kitten </kittens/ssh>`. Or just
download the kitten binary yourself from the `kitty releases page
<https://github.com/kovidgoyal/kitty/releases>`__ and put it somewhere in
PATH. If that is not possible you can use the :doc:`remote_file` kitten
instead. Or write your own script to use the underlying :doc:`file transfer
protocol </file-transfer-protocol>`.
.. versionadded:: 0.24.0
.. versionadded:: 0.30.0
Basic usage

View file

@ -485,7 +485,7 @@ class TestFileTransmission(BaseTest):
def test_transfer_send(self):
src = os.path.join(self.tdir, 'src')
with open(src, 'wb') as s:
s.write(os.urandom(813))
s.write(os.urandom(9137))
dest = os.path.join(self.tdir, 'dest')
with self.run_kitten([src, dest]) as pty:
pty.wait_till_child_exits(require_exit_code=0)