test suite reviews and discussions
 help / color / mirror / Atom feed
From: Jingguo Fu <jingguox.fu@intel.com>
To: dts@dpdk.org
Cc: Jingguo Fu <jingguox.fu@intel.com>
Subject: [dts] [DTS][PATCH V2 2/4] virt: add copy file from virt guest
Date: Fri,  8 Jan 2016 16:12:44 +0800	[thread overview]
Message-ID: <1452240766-29525-2-git-send-email-jingguox.fu@intel.com> (raw)
In-Reply-To: <1452240766-29525-1-git-send-email-jingguox.fu@intel.com>

Signed-off-by: Jingguo Fu <jingguox.fu@intel.com>
---
 framework/ssh_pexpect.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/framework/ssh_pexpect.py b/framework/ssh_pexpect.py
index 046692f..96c4409 100644
--- a/framework/ssh_pexpect.py
+++ b/framework/ssh_pexpect.py
@@ -141,6 +141,9 @@ class SSHPexpect(object):
         Copies a file from a remote place into local.
         """
         command = 'scp {0}@{1}:{2} {3}'.format(self.username, self.host, src, dst)
+        if ':' in self.host:
+            command = 'scp -P {0} -o NoHostAuthenticationForLocalhost=yes {1}@{2}:{3} {4}'.format(
+                str(self.port), self.username, self.ip, src, dst)
         if password == '':
             self._spawn_scp(command, self.password)
         else:
-- 
2.1.0

  reply	other threads:[~2016-01-08  8:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-08  8:12 [dts] [DTS][PATCH V2 1/4] virt: dpdk vhost plus virtio iperf config Jingguo Fu
2016-01-08  8:12 ` Jingguo Fu [this message]
2016-01-08  8:12 ` [dts] [DTS][PATCH V2 3/4] virt: qemu kvm init for two vms scenario Jingguo Fu
2016-01-08  8:12 ` [dts] [DTS][PATCH V2 4/4] virt: add dpdk vhost virtio iperf test cases Jingguo Fu
2016-01-14  2:49   ` Xu, Qian Q
2016-01-18  7:13     ` Liu, Yong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1452240766-29525-2-git-send-email-jingguox.fu@intel.com \
    --to=jingguox.fu@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).