[gnome-continuous-yocto/gnomeostree-3.28-rocko: 4237/8267] oeqa/runtime/context.py: Add logger to getTarget
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 4237/8267] oeqa/runtime/context.py: Add logger to getTarget
- Date: Sun, 17 Dec 2017 01:45:18 +0000 (UTC)
commit 71e456add86f95889a283f035674c0f40aa77011
Author: Mariano Lopez <mariano lopez linux intel com>
Date: Wed Dec 21 13:08:25 2016 +0000
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>
meta/lib/oeqa/runtime/context.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/meta/lib/oeqa/runtime/context.py b/meta/lib/oeqa/runtime/context.py
index f0f6e62..bc8abd0 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]