mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 12:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
0d1418026b
commit
d95700ff6e
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user