diff options
author | Tom Rini <trini@konsulko.com> | 2018-08-03 10:08:13 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-08-03 10:08:13 -0400 |
commit | a30691a538b0894dfc0076150b8a3a7326b9e45a (patch) | |
tree | 2d12b0e66b9baa83199c74b5d9b392e09b529f79 /tools/binman/binman.py | |
parent | a839c3641e4de98981695056eeeb2ec17ba1a4ab (diff) | |
parent | cee02e6ff422fdb8b543a8097b84a9682785f46d (diff) |
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'tools/binman/binman.py')
-rwxr-xr-x | tools/binman/binman.py | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/tools/binman/binman.py b/tools/binman/binman.py index 52e02ed91b4..1536e956517 100755 --- a/tools/binman/binman.py +++ b/tools/binman/binman.py @@ -77,9 +77,20 @@ def RunTests(debug, args): return 1 return 0 +def GetEntryModules(include_testing=True): + """Get a set of entry class implementations + + Returns: + Set of paths to entry class filenames + """ + glob_list = glob.glob(os.path.join(our_path, 'etype/*.py')) + return set([os.path.splitext(os.path.basename(item))[0] + for item in glob_list + if include_testing or '_testing' not in item]) + def RunTestCoverage(): """Run the tests and check that we get 100% coverage""" - glob_list = glob.glob(os.path.join(our_path, 'etype/*.py')) + glob_list = GetEntryModules(False) all_set = set([os.path.splitext(os.path.basename(item))[0] for item in glob_list if '_testing' not in item]) test_util.RunTestCoverage('tools/binman/binman.py', None, @@ -107,13 +118,8 @@ def RunBinman(options, args): elif options.test_coverage: RunTestCoverage() - elif options.full_help: - pager = os.getenv('PAGER') - if not pager: - pager = 'more' - fname = os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), - 'README') - command.Run(pager, fname) + elif options.entry_docs: + control.WriteEntryDocs(GetEntryModules()) else: try: |