summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/runtime')
-rw-r--r--meta/lib/oeqa/runtime/context.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runtime/context.py b/meta/lib/oeqa/runtime/context.py
index ea1b4a643e..c4cd76cf44 100644
--- a/meta/lib/oeqa/runtime/context.py
+++ b/meta/lib/oeqa/runtime/context.py
@@ -89,7 +89,7 @@ class OERuntimeTestContextExecutor(OETestContextExecutor):
89 help="Qemu boot configuration, only needed when target_type is QEMU.") 89 help="Qemu boot configuration, only needed when target_type is QEMU.")
90 90
91 @staticmethod 91 @staticmethod
92 def getTarget(target_type, target_modules_path, logger, target_ip, server_ip, **kwargs): 92 def getTarget(target_type, logger, target_ip, server_ip, **kwargs):
93 target = None 93 target = None
94 94
95 if target_type == 'simpleremote': 95 if target_type == 'simpleremote':
@@ -97,8 +97,17 @@ class OERuntimeTestContextExecutor(OETestContextExecutor):
97 elif target_type == 'qemu': 97 elif target_type == 'qemu':
98 target = OEQemuTarget(logger, target_ip, server_ip, **kwargs) 98 target = OEQemuTarget(logger, target_ip, server_ip, **kwargs)
99 else: 99 else:
100 # XXX: This code uses the old naming convention for controllers and
101 # targets, the idea it is to leave just targets as the controller
102 # most of the time was just a wrapper.
103 # XXX: This code tries to import modules from lib/oeqa/controllers
104 # directory and treat them as controllers, it will less error prone
105 # to use introspection to load such modules.
106 # XXX: Don't base your targets on this code it will be refactored
107 # in the near future.
100 # Custom target module loading 108 # Custom target module loading
101 try: 109 try:
110 target_modules_path = kwargs.get('target_modules_path', '')
102 controller = OERuntimeTestContextExecutor.getControllerModule(target_type, target_modules_path) 111 controller = OERuntimeTestContextExecutor.getControllerModule(target_type, target_modules_path)
103 target = controller(logger, target_ip, server_ip, **kwargs) 112 target = controller(logger, target_ip, server_ip, **kwargs)
104 except ImportError as e: 113 except ImportError as e: