scripts: build-efi: Flush output before running QEMU

Complete writing of any output before running QEMU, since otherwise it
does not always appear until QEMU exits (e.g. with 'tee')

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-10-20 13:58:06 +01:00
parent b6d52a75b8
commit 357418fc47

View File

@@ -19,6 +19,7 @@ from argparse import ArgumentParser
import os
from pathlib import Path
import shutil
import sys
import build_helper
@@ -152,6 +153,7 @@ class BuildEfi:
cmd += extra
self.helper.add_qemu_args(self.args, cmd, base_hd=1)
tout.info(' '.join(cmd))
sys.stdout.flush()
command.run(*cmd)
def setup_files(self, build, build_type, dst):