From: Simon Glass Date: Fri, 24 Feb 2023 01:18:01 +0000 (-0700) Subject: binman: Avoid unwanted output in testFitFirmwareLoadables() X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20%28.OutputFormats.Get?a=commitdiff_plain;h=7c4027af48fc7178d222ffa9bf5c76853390aa0e;p=u-boot.git 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 --- diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index 0b3bca90c8..d5cae38526 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()