[PATCH 1/4] test/py: Shorten u_boot_console

Tom Rini trini at konsulko.com
Sat Jan 25 22:50:55 CET 2025


On Sat, Jan 25, 2025 at 02:31:36PM -0700, Simon Glass wrote:

> This fixture name is quite long and results in lots of verbose code.
> We know this is U-Boot so the 'u_boot_' part is not necessary.
> 
> But it is also a bit of a misnomer, since it provides access to all the
> information available to tests. It is not just the console.
> 
> It would be too confusing to use con as it would be confused with
> config and it is probably too short.
> 
> So shorten it to 'ubpy'.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
[snip]
>  102 files changed, 2591 insertions(+), 2591 deletions(-)

First, I'm not sure I like "ubpy". I believe "u_boot_console" is because
it's how we interact with the stdin/stdout of the running U-Boot. And
indeed it provides more than that. But ubpy is too abstract and unclear,
and looking at the diffstat, I don't know that big global rename is
justified to save text space.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250125/f162504e/attachment.sig>


More information about the U-Boot mailing list