1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-09-01 17:41:54 +01:00

target: Add Target.pull(via_temp=False) parameter

Allow pulling a file via a temporary location on the target, to
side-step performance issues when pulling big files from sysfs.
This commit is contained in:
Douglas Raillard
2021-08-12 18:13:37 +01:00
committed by Marc Bonnici
parent 477e82c444
commit b719808ef2
2 changed files with 13 additions and 5 deletions

View File

@@ -249,7 +249,7 @@ Target
matches, ``dest`` must be a folder (or will be created as such if it
does not exists yet).
.. method:: Target.pull(source, dest [, as_root, timeout, globbing])
.. method:: Target.pull(source, dest [, as_root, timeout, globbing, via_temp])
Transfer a file from the target device to the host machine.
@@ -267,6 +267,10 @@ Target
pattern instead of being take as-is. If the pattern has multiple
matches, ``dest`` must be a folder (or will be created as such if it
does not exists yet).
:param via_temp: If ``True``, copy the file first to a temporary location on
the target, and then pull it. This can avoid issues some filesystems,
notably paramiko + OpenSSH combination having performance issues when
pulling big files from sysfs.
.. method:: Target.execute(command [, timeout [, check_exit_code [, as_root [, strip_colors [, will_succeed [, force_locale]]]]]])