[PATCH v7 04/11] test: Introduce the concept of a role

Tom Rini trini at konsulko.com
Wed Oct 30 00:53:13 CET 2024


On Wed, Oct 09, 2024 at 07:51:38PM -0600, Simon Glass wrote:

> In Labgrid there is the concept of a 'role', which is similar to the
> U-Boot board ID in U-Boot's pytest subsystem.
> 
> The role indicates both the target and information about the U-Boot
> build to use. It can also provide any amount of other configuration.
> The information is obtained using the 'labgrid-client query' operation.
> 
> Make use of this in tests, so that only the role is required in gitlab
> and other situations. The board type and other things can be queried
> as needed.
> 
> Use a new 'u-boot-test-getrole' script to obtain the requested
> information.
> 
> With this it is possible to run lab tests in gitlab with just a single
> 'ROLE' variable for each board.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>

Aside from the "look ma, only one conf file" trick, I still do not see how
this differs from the typical board/id system we use today. One can
easily make N symlinks to the generic conf file.

-- 
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/20241029/508b2b39/attachment.sig>


More information about the U-Boot mailing list