diff options
author | Stefan Stanacar <stefanx.stanacar@intel.com> | 2014-03-07 11:34:05 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-11 08:07:59 -0700 |
commit | 47d2049d13ab71e0310e9eedaf307d6c3e530b44 (patch) | |
tree | a29c80544eedf80dca2b72cec40076d01503b847 /meta/lib/oeqa/targetcontrol.py | |
parent | c1f2a3c41969df0b7f08cf314b2cb7c9a6030092 (diff) | |
download | openembedded-core-47d2049d13ab71e0310e9eedaf307d6c3e530b44.tar.gz openembedded-core-47d2049d13ab71e0310e9eedaf307d6c3e530b44.tar.bz2 openembedded-core-47d2049d13ab71e0310e9eedaf307d6c3e530b44.zip |
oeqa/targetcontrol: fix loading a controller using a class name
This was wrong and if one would do TEST_TARGET = "SimpleRemoteTarget"
instead of TEST_TARGET = "simpleremote" it would complain
that there is no such controller when there is.
Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/targetcontrol.py')
-rw-r--r-- | meta/lib/oeqa/targetcontrol.py | 3 |
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 import subprocess import bb import traceback +import sys from oeqa.utils.sshcontrol import SSHControl from oeqa.utils.qemurunner import QemuRunner from oeqa.controllers.testtargetloader import TestTargetLoader @@ -25,7 +26,7 @@ def get_target_controller(d): # use the class name try: # is it a core class defined here? - controller = getattr(__name__, testtarget) + controller = getattr(sys.modules[__name__], testtarget) except AttributeError: # nope, perhaps a layer defined one try: |