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

Mehmet Fide <[email protected]>
Newsgroups gmane.comp.boot-loaders.u-boot.general,gmane.comp.boot-loaders.u-boot
Message-ID <[email protected]>
On Fri, Aug 14, 2026 at 12:16:32PM -0600, Tom Rini wrote:
> 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' !

Hi Tom,

Reproduced it with test.py on sandbox. The unit test itself passes; what
fails is test.py's console watcher: the negative case deliberately runs
an unknown command, and the resulting "Unknown command 'no_such_command'
- try 'help'" line matches test.py's unknown_command bad pattern, which
aborts the test the moment it appears. That is why every test.py job
fails while "ut cmd" run directly is fine - I had only tested the
latter, sorry for the noise.

v3 replaces that case with "false", which fails without printing
anything. It is gated on CONFIG_HUSH_PARSER, since cmd/test.c providing
the command is only built with hush.

Best regards,
Mehmet
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.