oeqa/target/ssh: update options for SCP

By default scp expects files. Passing -r option allows to copy directories
too

(From OE-Core rev: f22e5af0c5f185463c6f4a7fd7f1376c7f22a4da)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexis Lothoré
2023-06-09 08:48:00 +02:00
committed by Richard Purdie
parent 1a2aa5e536
commit cdac245fc2

View File

@@ -40,8 +40,11 @@ class OESSHTarget(OETarget):
'-o', 'StrictHostKeyChecking=no',
'-o', 'LogLevel=ERROR'
]
scp_options = [
'-r'
]
self.ssh = ['ssh', '-l', self.user ] + ssh_options
self.scp = ['scp'] + ssh_options
self.scp = ['scp'] + ssh_options + scp_options
if port:
self.ssh = self.ssh + [ '-p', port ]
self.scp = self.scp + [ '-P', port ]