diff options
author | Mariano Lopez <mariano.lopez@linux.intel.com> | 2016-07-21 16:34:39 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-04 15:05:47 +0100 |
commit | f1cc272e4851fd994e9d052628a747ac19f90488 (patch) | |
tree | 0e653bd307aa14171c5a1b3b4a713d4cb34dff9b /meta | |
parent | 928e0eecdb126f7d0bacd05b7057fc825e0d8f05 (diff) | |
download | openembedded-core-f1cc272e4851fd994e9d052628a747ac19f90488.tar.gz openembedded-core-f1cc272e4851fd994e9d052628a747ac19f90488.tar.bz2 openembedded-core-f1cc272e4851fd994e9d052628a747ac19f90488.zip |
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]
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/oetest.py | 2 |
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): if "auto" in self.testsuites: def add_auto_list(path): - if not os.path.exists(os.path.join(path, '__init__.py')): - bb.fatal('Tests directory %s exists but is missing __init__.py' % path) files = sorted([f for f in os.listdir(path) if f.endswith('.py') and not f.startswith('_')]) for f in files: module = 'oeqa.' + type + '.' + f[:-3] |