summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/oetest.py
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2016-07-21 16:34:39 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-04 15:22:22 +0100
commit65a03c3f949e27f64f43b6b0b6452218dfe1a4ec (patch)
tree90b07a286e5b6ff249bdd42566cf020c0eff5e28 /meta/lib/oeqa/oetest.py
parent84d854c98bd201f3e92e440c1d9a64ba4f31e6da (diff)
downloadpoky-65a03c3f949e27f64f43b6b0b6452218dfe1a4ec.tar.gz
oetest.py: Remove check for __init__.py
When using "auto" in TEST_SUITES there is a check for __init__.py in the <layer>/lib/oeqa/runtime/ directory in all the layers in BBLAYERS. This check was needed because the way that python 2 import the modules, now that bitbake uses python 3 there is no need these __init__.py files, moreover these files won't allow to import tests from other layers. This patch removes the check. [YOCTO #9996] (From OE-Core rev: f1cc272e4851fd994e9d052628a747ac19f90488) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/oetest.py')
-rw-r--r--meta/lib/oeqa/oetest.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
index 9132a19319..7dca77a969 100644
--- a/meta/lib/oeqa/oetest.py
+++ b/meta/lib/oeqa/oetest.py
@@ -265,8 +265,6 @@ class TestContext(object):
265 265
266 if "auto" in self.testsuites: 266 if "auto" in self.testsuites:
267 def add_auto_list(path): 267 def add_auto_list(path):
268 if not os.path.exists(os.path.join(path, '__init__.py')):
269 bb.fatal('Tests directory %s exists but is missing __init__.py' % path)
270 files = sorted([f for f in os.listdir(path) if f.endswith('.py') and not f.startswith('_')]) 268 files = sorted([f for f in os.listdir(path) if f.endswith('.py') and not f.startswith('_')])
271 for f in files: 269 for f in files:
272 module = 'oeqa.' + type + '.' + f[:-3] 270 module = 'oeqa.' + type + '.' + f[:-3]