From: Alexis Lothoré Date: Fri, 9 Jun 2023 06:48:00 +0000 (+0200) Subject: oeqa/target/ssh: update options for SCP X-Git-Tag: uninative-4.1~396 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f22e5af0c5f185463c6f4a7fd7f1376c7f22a4da;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git oeqa/target/ssh: update options for SCP By default scp expects files. Passing -r option allows to copy directories too Signed-off-by: Alexis Lothoré Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/core/target/ssh.py b/meta/lib/oeqa/core/target/ssh.py index 51079075b5b..e650302052d 100644 --- a/meta/lib/oeqa/core/target/ssh.py +++ b/meta/lib/oeqa/core/target/ssh.py @@ -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 ]