summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2016-12-10 09:21:45 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-12-12 15:16:42 +0000
commit90404e1f24fe14911170613c85e86b5f3d451ab7 (patch)
tree51b9c64a6b3e1698450f2e4801664299b9435ce4 /meta/lib/oeqa
parent36e178a62f04e7f2611b26964efe46b9af97189a (diff)
downloadpoky-90404e1f24fe14911170613c85e86b5f3d451ab7.tar.gz
targetloader.py: drop test for ClassType
ClassType was removed from python3. The code testing for ClassType kept throwing AttributeError exceptions: module 'types' has no attribute 'ClassType' The exceptions prevented loading of any dynamically resolved target controllers. (From OE-Core rev: d62f18c39bc0ed3b0f5ac8465b393c15f2143ecf) Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r--meta/lib/oeqa/controllers/testtargetloader.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/meta/lib/oeqa/controllers/testtargetloader.py b/meta/lib/oeqa/controllers/testtargetloader.py
index a1b7b1d92b..b51d04b213 100644
--- a/meta/lib/oeqa/controllers/testtargetloader.py
+++ b/meta/lib/oeqa/controllers/testtargetloader.py
@@ -61,8 +61,6 @@ class TestTargetLoader:
61 obj = getattr(module, target) 61 obj = getattr(module, target)
62 if obj: 62 if obj:
63 from oeqa.targetcontrol import BaseTarget 63 from oeqa.targetcontrol import BaseTarget
64 if (not isinstance(obj, (type, types.ClassType))):
65 bb.warn("Target {0} found, but not of type Class".format(target))
66 if( not issubclass(obj, BaseTarget)): 64 if( not issubclass(obj, BaseTarget)):
67 bb.warn("Target {0} found, but subclass is not BaseTarget".format(target)) 65 bb.warn("Target {0} found, but subclass is not BaseTarget".format(target))
68 except: 66 except: