[oe-commits] [openembedded-core] 17/33: oeqa/runtime/context.py: support listening port in TEST_SERVER_IP

git at git.openembedded.org git at git.openembedded.org
Mon Dec 16 23:27:58 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 9f401cd8b010ca613a151d0323b251f2243f399f
Author: André Draszik <git at andred.net>
AuthorDate: Thu Dec 12 21:52:10 2019 +0000

    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.
    
    Signed-off-by: André Draszik <git at andred.net>
    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 ef738a3..2ecb1a8 100644
--- a/meta/lib/oeqa/runtime/context.py
+++ b/meta/lib/oeqa/runtime/context.py
@@ -98,6 +98,12 @@ class OERuntimeTestContextExecutor(OETestContextExecutor):
                 target_ip = target_ip_port[0]
                 kwargs['port'] = target_ip_port[1]
 
+        if server_ip:
+            server_ip_port = server_ip.split(':')
+            if len(server_ip_port) == 2:
+                server_ip = server_ip_port[0]
+                kwargs['server_port'] = int(server_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