summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2016-12-21 13:08:25 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-23 12:03:56 +0000
commit26bae3c255bc1e1cc8d81db0cffc809de0182a43 (patch)
treee974c46188d321c90adea188841fa75e5b6ab549
parent7485a08c967916fb6edff4cc573d9314ec577031 (diff)
downloadopenembedded-core-26bae3c255bc1e1cc8d81db0cffc809de0182a43.tar.gz
openembedded-core-26bae3c255bc1e1cc8d81db0cffc809de0182a43.tar.bz2
openembedded-core-26bae3c255bc1e1cc8d81db0cffc809de0182a43.zip
oeqa/runtime/context.py: Add logger to getTarget
Current targets (ssh and qemu) require a logger in their constructors, so in order to get a new target we need to provide the logger. [YOCTO #10686] Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
-rw-r--r--meta/lib/oeqa/runtime/context.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oeqa/runtime/context.py b/meta/lib/oeqa/runtime/context.py
index f0f6e62944..bc8abd0c4e 100644
--- a/meta/lib/oeqa/runtime/context.py
+++ b/meta/lib/oeqa/runtime/context.py
@@ -76,13 +76,13 @@ class OERuntimeTestContextExecutor(OETestContextExecutor):
help="Qemu boot configuration, only needed when target_type is QEMU.")
@staticmethod
- def getTarget(target_type, target_ip, server_ip, **kwargs):
+ def getTarget(target_type, logger, target_ip, server_ip, **kwargs):
target = None
if target_type == 'simpleremote':
- target = OESSHTarget(target_ip, server_ip, kwargs)
+ target = OESSHTarget(logger, target_ip, server_ip, **kwargs)
elif target_type == 'qemu':
- target = OEQemuTarget(target_ip, server_ip, kwargs)
+ target = OEQemuTarget(logger, target_ip, server_ip, **kwargs)
else:
# TODO: Implement custom target module loading
raise TypeError("target_type %s isn't supported" % target_type)