aboutsummaryrefslogtreecommitdiff
path: root/tools/binman/ftest.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-02-23 18:18:01 -0700
committerSimon Glass <sjg@chromium.org>2023-03-08 11:40:49 -0800
commit7c4027af48fc7178d222ffa9bf5c76853390aa0e (patch)
tree25e2e496276ce40d9e6b80806defe0b9771fcecd /tools/binman/ftest.py
parent47dd6b4d7daba06a04bb612d0c19e350e6287fac (diff)
downloadu-boot-7c4027af48fc7178d222ffa9bf5c76853390aa0e.zip
u-boot-7c4027af48fc7178d222ffa9bf5c76853390aa0e.tar.gz
u-boot-7c4027af48fc7178d222ffa9bf5c76853390aa0e.tar.bz2
binman: Avoid unwanted output in testFitFirmwareLoadables()
This prints a message about the missing tee-os generated by the test. This is confusing, so suppress it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/ftest.py')
-rw-r--r--tools/binman/ftest.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py
index 0b3bca9..d5cae38 100644
--- a/tools/binman/ftest.py
+++ b/tools/binman/ftest.py
@@ -6353,10 +6353,11 @@ fdt fdtmap Extract the devicetree blob from the fdtmap
'tee-os-path': 'missing.bin',
}
test_subdir = os.path.join(self._indir, TEST_FDT_SUBDIR)
- data = self._DoReadFileDtb(
- '276_fit_firmware_loadables.dts',
- entry_args=entry_args,
- extra_indirs=[test_subdir])[0]
+ with test_util.capture_sys_output() as (stdout, stderr):
+ data = self._DoReadFileDtb(
+ '276_fit_firmware_loadables.dts',
+ entry_args=entry_args,
+ extra_indirs=[test_subdir])[0]
dtb = fdt.Fdt.FromData(data)
dtb.Scan()