summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
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:05:20 +0000
commit71e456add86f95889a283f035674c0f40aa77011 (patch)
tree7657b39cb147ccfe0370cc04360ec8f2e65a5653 /meta/lib/oeqa
parent0e8d0a03f0ea808b6d10d1ce84e74e5e0356a7f9 (diff)
downloadpoky-71e456add86f95889a283f035674c0f40aa77011.tar.gz
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] (From OE-Core rev: 26bae3c255bc1e1cc8d81db0cffc809de0182a43) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-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):
76 help="Qemu boot configuration, only needed when target_type is QEMU.") 76 help="Qemu boot configuration, only needed when target_type is QEMU.")
77 77
78 @staticmethod 78 @staticmethod
79 def getTarget(target_type, target_ip, server_ip, **kwargs): 79 def getTarget(target_type, logger, target_ip, server_ip, **kwargs):
80 target = None 80 target = None
81 81
82 if target_type == 'simpleremote': 82 if target_type == 'simpleremote':
83 target = OESSHTarget(target_ip, server_ip, kwargs) 83 target = OESSHTarget(logger, target_ip, server_ip, **kwargs)
84 elif target_type == 'qemu': 84 elif target_type == 'qemu':
85 target = OEQemuTarget(target_ip, server_ip, kwargs) 85 target = OEQemuTarget(logger, target_ip, server_ip, **kwargs)
86 else: 86 else:
87 # TODO: Implement custom target module loading 87 # TODO: Implement custom target module loading
88 raise TypeError("target_type %s isn't supported" % target_type) 88 raise TypeError("target_type %s isn't supported" % target_type)