summaryrefslogtreecommitdiff
path: root/tools/patman
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-07-08 14:25:32 -0600
committerSimon Glass <sjg@chromium.org>2019-07-24 12:54:08 -0700
commite430440232e455c0b670a3f5647fbab649e34f4b (patch)
treef5cbda86979a2fb88edbba8c9761fd56138eb358 /tools/patman
parentc073ced7a325b46dab14183af26e4b8bc3c4f3d0 (diff)
binman: Allow easy importing of entry modules
At present entry modules can only be accessed using Entry.Lookup() or Entry.Create(). Most of the time this is fine, but sometimes a module needs to provide constants or helper functions useful to other modules. It is easier in this case to use 'import'. Add an __init__ file to permit this. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman')
-rw-r--r--tools/patman/test_util.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/patman/test_util.py b/tools/patman/test_util.py
index 40098159c0..09f258c26b 100644
--- a/tools/patman/test_util.py
+++ b/tools/patman/test_util.py
@@ -58,6 +58,7 @@ def RunTestCoverage(prog, filter_fname, exclude_list, build_dir, required=None):
test_set = set([os.path.splitext(os.path.basename(line.split()[0]))[0]
for line in lines if '/etype/' in line])
missing_list = required
+ missing_list.discard('__init__')
missing_list.difference_update(test_set)
if missing_list:
print('Missing tests for %s' % (', '.join(missing_list)))