summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAlexis Lothoré <alexis.lothore@bootlin.com>2023-06-09 08:48:00 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-17 11:50:57 +0100
commitcdac245fc288a5ecc8163325f4b1468d4bc643db (patch)
tree40e8c3d7d193ebb1667b55c8c71d5337c3191dd4 /meta
parent1a2aa5e536d419c6473daa1b34363be92612ba28 (diff)
downloadpoky-cdac245fc288a5ecc8163325f4b1468d4bc643db.tar.gz
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>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/core/target/ssh.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/lib/oeqa/core/target/ssh.py b/meta/lib/oeqa/core/target/ssh.py
index 51079075b5..e650302052 100644
--- a/meta/lib/oeqa/core/target/ssh.py
+++ b/meta/lib/oeqa/core/target/ssh.py
@@ -40,8 +40,11 @@ class OESSHTarget(OETarget):
40 '-o', 'StrictHostKeyChecking=no', 40 '-o', 'StrictHostKeyChecking=no',
41 '-o', 'LogLevel=ERROR' 41 '-o', 'LogLevel=ERROR'
42 ] 42 ]
43 scp_options = [
44 '-r'
45 ]
43 self.ssh = ['ssh', '-l', self.user ] + ssh_options 46 self.ssh = ['ssh', '-l', self.user ] + ssh_options
44 self.scp = ['scp'] + ssh_options 47 self.scp = ['scp'] + ssh_options + scp_options
45 if port: 48 if port:
46 self.ssh = self.ssh + [ '-p', port ] 49 self.ssh = self.ssh + [ '-p', port ]
47 self.scp = self.scp + [ '-P', port ] 50 self.scp = self.scp + [ '-P', port ]