summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r--meta/lib/oeqa/targetcontrol.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oeqa/targetcontrol.py b/meta/lib/oeqa/targetcontrol.py
index 17871f5707..873a66457a 100644
--- a/meta/lib/oeqa/targetcontrol.py
+++ b/meta/lib/oeqa/targetcontrol.py
@@ -9,6 +9,7 @@ import shutil
9import subprocess 9import subprocess
10import bb 10import bb
11import traceback 11import traceback
12import sys
12from oeqa.utils.sshcontrol import SSHControl 13from oeqa.utils.sshcontrol import SSHControl
13from oeqa.utils.qemurunner import QemuRunner 14from oeqa.utils.qemurunner import QemuRunner
14from oeqa.controllers.testtargetloader import TestTargetLoader 15from oeqa.controllers.testtargetloader import TestTargetLoader
@@ -25,7 +26,7 @@ def get_target_controller(d):
25 # use the class name 26 # use the class name
26 try: 27 try:
27 # is it a core class defined here? 28 # is it a core class defined here?
28 controller = getattr(__name__, testtarget) 29 controller = getattr(sys.modules[__name__], testtarget)
29 except AttributeError: 30 except AttributeError:
30 # nope, perhaps a layer defined one 31 # nope, perhaps a layer defined one
31 try: 32 try: