[oe-commits] Christopher Larson : oe-selftest: obey oeqa.selftest.__path__
git at git.openembedded.org
git at git.openembedded.org
Fri Jul 24 07:42:21 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: 8d590e7c1c36716b6a8dba51a5a967816c66af0b
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=8d590e7c1c36716b6a8dba51a5a967816c66af0b
Author: Christopher Larson <chris_larson at mentor.com>
Date: Mon Jul 13 11:53:16 2015 -0700
oe-selftest: obey oeqa.selftest.__path__
This ensures that all paths that hold selftest tests will be checked
(oeqa.selftest is a namespace package).
[YOCTO #7625]
Signed-off-by: Christopher Larson <chris_larson at mentor.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
scripts/oe-selftest | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/scripts/oe-selftest b/scripts/oe-selftest
index fa6245a..c19c692 100755
--- a/scripts/oe-selftest
+++ b/scripts/oe-selftest
@@ -142,11 +142,12 @@ def get_tests(exclusive_modules=[], include_hidden=False):
for x in exclusive_modules:
testslist.append('oeqa.selftest.' + x)
if not testslist:
- testpath = os.path.abspath(os.path.dirname(oeqa.selftest.__file__))
- files = sorted([f for f in os.listdir(testpath) if f.endswith('.py') and not (f.startswith('_') and not include_hidden) and not f.startswith('__') and f != 'base.py'])
- for f in files:
- module = 'oeqa.selftest.' + f[:-3]
- testslist.append(module)
+ for testpath in oeqa.selftest.__path__:
+ files = sorted([f for f in os.listdir(testpath) if f.endswith('.py') and not (f.startswith('_') and not include_hidden) and not f.startswith('__') and f != 'base.py'])
+ for f in files:
+ module = 'oeqa.selftest.' + f[:-3]
+ if module not in testslist:
+ testslist.append(module)
return testslist
More information about the Openembedded-commits
mailing list