mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-27 09:02:20 +00:00
buildman: Move full help code into the control module
There is no good reason to keep this code separate. Move it into control.py so it is easier to test. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
d3d5c12331
commit
48ba5856eb
2 changed files with 8 additions and 6 deletions
|
@ -63,12 +63,6 @@ options, args = cmdline.ParseArgs()
|
||||||
# Run our meagre tests
|
# Run our meagre tests
|
||||||
if options.test:
|
if options.test:
|
||||||
RunTests()
|
RunTests()
|
||||||
elif options.full_help:
|
|
||||||
pager = os.getenv('PAGER')
|
|
||||||
if not pager:
|
|
||||||
pager = 'more'
|
|
||||||
fname = os.path.join(os.path.dirname(sys.argv[0]), 'README')
|
|
||||||
command.Run(pager, fname)
|
|
||||||
|
|
||||||
# Build selected commits for selected boards
|
# Build selected commits for selected boards
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -84,6 +84,14 @@ def DoBuildman(options, args):
|
||||||
options: Command line options object
|
options: Command line options object
|
||||||
args: Command line arguments (list of strings)
|
args: Command line arguments (list of strings)
|
||||||
"""
|
"""
|
||||||
|
if options.full_help:
|
||||||
|
pager = os.getenv('PAGER')
|
||||||
|
if not pager:
|
||||||
|
pager = 'more'
|
||||||
|
fname = os.path.join(os.path.dirname(sys.argv[0]), 'README')
|
||||||
|
command.Run(pager, fname)
|
||||||
|
return 0
|
||||||
|
|
||||||
gitutil.Setup()
|
gitutil.Setup()
|
||||||
|
|
||||||
bsettings.Setup(options.config_file)
|
bsettings.Setup(options.config_file)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue