Re: [PATCH v2 2/2] test: cmd: add a test for bootd

Tom Rini <[email protected]>
Newsgroups gmane.comp.boot-loaders.u-boot
Message-ID <20260814181632.GA3874174__5724.74650559656$1786731411$gmane$org@bill-the-cat>
On Thu, Aug 06, 2026 at 03:37:24PM +0200, Mehmet Fide wrote:

> From: Mehmet Fide <[email protected]>
> 
> There is no test for the bootd command. Add one to the cmd suite that
> covers the documented behaviour: bootd and its "boot" alias run the
> command held in the bootcmd environment variable, and the return value of
> bootd is the one of that command. Also assert the recursion guard in
> cmd_process(), which is part of the code bootd carries.
> 
> Signed-off-by: Mehmet Fide <[email protected]>
> ---
>  test/cmd/Makefile |  1 +
>  test/cmd/bootd.c  | 66 +++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 67 insertions(+)
>  create mode 100644 test/cmd/bootd.c

This causes most of CI to fail with:

=> ut cmd cmd_bootd_test
Test: cmd_bootd_test: bootd.c
hello bootd
hello bootd
Unknown command 'no_such_command' - try 'help' !

-- 
Tom
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQTzzqh0PWDgGS+bTHor4qD1Cr/kCgUCan9bfAAKCRAr4qD1Cr/k
CmCzAQC7apOjgtU8hN8AIG56CNAxspZLTWbf9xL4QQx++zHrCgEA9QMbQvv7w8Oh
1RcnQWk2u8/IlV6/okExQODjjRlqwAY=
=GwY/
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.