patman: Don't buffer test output with a single test
authorSimon Glass <sjg@chromium.org>
Sat, 13 Aug 2022 17:40:42 +0000 (11:40 -0600)
committerSimon Glass <sjg@chromium.org>
Sun, 21 Aug 2022 00:07:32 +0000 (18:07 -0600)
commit10463136fdfed16df52e3f5c24492ef3a269b59f
tree2f12b696485363ffbddfdc39544b125b7bcb3a27
parent8816edabbdc6e396e6d1317be5eeb58b8d87b16a
patman: Don't buffer test output with a single test

When a single test is run we don't need to buffer the test output. This
has the unfortunate side effect of suppressing test output, in particular
the binman output directory normally printed with the -X option. This is
a huge problem since it blocks debugging of tests.

We don't actually know how many tests will be run when we set up the
suite, so as a work-around, assume that test_name being specified
indicates that there is likely only one.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/test_util.py