[oe-commits] [openembedded-core] 16/18: oeqa/runtime/context.py: Add support to specify port in target_ip
git at git.openembedded.org
git at git.openembedded.org
Mon Jun 5 15:57:52 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 2968ef1c6ac8634c35ee2014893f6baf0e1f46ba
Author: Aníbal Limón <anibal.limon at linux.intel.com>
AuthorDate: Fri Jun 2 11:11:03 2017 -0500
oeqa/runtime/context.py: Add support to specify port in target_ip
Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/lib/oeqa/runtime/context.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meta/lib/oeqa/runtime/context.py b/meta/lib/oeqa/runtime/context.py
index c4cd76c..0294003 100644
--- a/meta/lib/oeqa/runtime/context.py
+++ b/meta/lib/oeqa/runtime/context.py
@@ -92,6 +92,12 @@ class OERuntimeTestContextExecutor(OETestContextExecutor):
def getTarget(target_type, logger, target_ip, server_ip, **kwargs):
target = None
+ if target_ip:
+ target_ip_port = target_ip.split(':')
+ if len(target_ip_port) == 2:
+ target_ip = target_ip_port[0]
+ kwargs['port'] = target_ip_port[1]
+
if target_type == 'simpleremote':
target = OESSHTarget(logger, target_ip, server_ip, **kwargs)
elif target_type == 'qemu':
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list