summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Draszik <git@andred.net>2019-12-12 21:52:10 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-16 23:25:49 +0000
commitae6c729a53111b6477903f429efd5a58e3f2b575 (patch)
treea3ecd8304dc824a8ec61e2b3865cf732d07b1205
parent6f637e973a252d8bfd1a4d79d5e4f9d9c850f0c4 (diff)
downloadpoky-ae6c729a53111b6477903f429efd5a58e3f2b575.tar.gz
oeqa/runtime/context.py: support listening port in TEST_SERVER_IP
Similar to the existing possibility to specify a port in TEST_TARGET_IP, allow TEST_SERVER_IP to also contain a port. The intention is for this port to be passed into e.g. the http server from the apt / dnf / opkg tests, or any other (custom) tests that might need the target to connect to a service spawned by bitbake / oeqa, where bitbake is actually running inside a docker container. (From OE-Core rev: 9f401cd8b010ca613a151d0323b251f2243f399f) Signed-off-by: André Draszik <git@andred.net> 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 ef738a3359..2ecb1a8f01 100644
--- a/meta/lib/oeqa/runtime/context.py
+++ b/meta/lib/oeqa/runtime/context.py
@@ -98,6 +98,12 @@ class OERuntimeTestContextExecutor(OETestContextExecutor):
98 target_ip = target_ip_port[0] 98 target_ip = target_ip_port[0]
99 kwargs['port'] = target_ip_port[1] 99 kwargs['port'] = target_ip_port[1]
100 100
101 if server_ip:
102 server_ip_port = server_ip.split(':')
103 if len(server_ip_port) == 2:
104 server_ip = server_ip_port[0]
105 kwargs['server_port'] = int(server_ip_port[1])
106
101 if target_type == 'simpleremote': 107 if target_type == 'simpleremote':
102 target = OESSHTarget(logger, target_ip, server_ip, **kwargs) 108 target = OESSHTarget(logger, target_ip, server_ip, **kwargs)
103 elif target_type == 'qemu': 109 elif target_type == 'qemu':