summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2017-06-02 11:11:03 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-06 19:02:44 +0100
commitd95700ff6e175c7ff254583d198ed628768be004 (patch)
treeb2d2de38c48dbd9cb889d953eb4c1cb200b7ce66
parent0d1418026b378389a1668761d6429a94e6c047f8 (diff)
downloadpoky-d95700ff6e175c7ff254583d198ed628768be004.tar.gz
oeqa/runtime/context.py: Add support to specify port in target_ip
(From OE-Core rev: 7fe4c074611eb21abdf811d8f216d4df7ab6a3ea) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/runtime/context.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/context.py b/meta/lib/oeqa/runtime/context.py
index c4cd76cf44..0294003fc7 100644
--- a/meta/lib/oeqa/runtime/context.py
+++ b/meta/lib/oeqa/runtime/context.py
@@ -92,6 +92,12 @@ class OERuntimeTestContextExecutor(OETestContextExecutor):
92 def getTarget(target_type, logger, target_ip, server_ip, **kwargs): 92 def getTarget(target_type, logger, target_ip, server_ip, **kwargs):
93 target = None 93 target = None
94 94
95 if target_ip:
96 target_ip_port = target_ip.split(':')
97 if len(target_ip_port) == 2:
98 target_ip = target_ip_port[0]
99 kwargs['port'] = target_ip_port[1]
100
95 if target_type == 'simpleremote': 101 if target_type == 'simpleremote':
96 target = OESSHTarget(logger, target_ip, server_ip, **kwargs) 102 target = OESSHTarget(logger, target_ip, server_ip, **kwargs)
97 elif target_type == 'qemu': 103 elif target_type == 'qemu':