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:
Simon Glass
2025-09-23 12:22:45 -06:00
parent abd0cb5a50
commit 4669ad3785
3 changed files with 6 additions and 1 deletions

View File

@@ -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(