]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
oeqa/runtime/context.py: Add logger to getTarget
authorMariano Lopez <mariano.lopez@linux.intel.com>
Wed, 21 Dec 2016 13:08:25 +0000 (13:08 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 23 Jan 2017 12:05:20 +0000 (12:05 +0000)
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

index f0f6e6294410940720e43890e68104fece9bfb0b..bc8abd0c4e1afe5f74e7b09848a5f4895c2f771d 100644 (file)
@@ -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)