[PATCH 03/49] dtoc: Test the stdout output

Simon Glass sjg at chromium.org
Wed Jan 6 16:13:12 CET 2021


Normally dtoc outputs to a file but it also offers a way to write output
to stdout. At present the test for that does not actually check that the
output is correct. Add this to the test.

This uses a member variable to hold the expected text, so it can be used
in muitiple places.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 tools/dtoc/test_dtoc.py | 37 ++++++++++++++++++++++---------------
 1 file changed, 22 insertions(+), 15 deletions(-)

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list