scripts: Update build-efi/qemu to support disabling pager
The pager can interfere with tests and there is a lab test which uses the build-efi script. Add an option to disable the pager so that the labgrid test can request that. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -155,7 +155,8 @@ class BuildEfi:
|
||||
|
||||
def do_build(self, build):
|
||||
"""Build U-Boot for the selected board"""
|
||||
res = command.run_one('buildman', '-w', '-o', self.build_dir,
|
||||
extra = ['-a', '~CONSOLE_PAGER'] if self.args.no_pager else []
|
||||
res = command.run_one('buildman', '-w', '-o', self.build_dir, *extra,
|
||||
'--board', build, '-I', raise_on_error=False)
|
||||
if res.return_code and res.return_code != 101: # Allow warnings
|
||||
raise ValueError(
|
||||
|
||||
Reference in New Issue
Block a user