[PATCH] test/py: Add support to enable check for bad pattern

Tom Rini trini at konsulko.com
Wed May 22 16:40:48 CEST 2024


On Wed, May 22, 2024 at 06:45:13PM +0530, Love Kumar wrote:

> Executing a u-boot command may raise an error or extra bad pattern,
> beyond the default bad patterns. Providing a way to enable the console
> output error check in test.
> 
> For example, description for OS boot test:
> import re
> check_type = 'kernel_boot_error'
> check_pattern = re.compile('ERROR -2: can't get kernel image!')
> with u_boot_console.enable_check(check_type, check_pattern):
>     u_boot_console.run_command('<boot command>')
> 
> Signed-off-by: Love Kumar <love.kumar at amd.com>
> ---
>  test/py/u_boot_console_base.py | 44 ++++++++++++++++++++++++++++++++++
>  1 file changed, 44 insertions(+)

Looks reasonable, please put this as a pre-req for the updated kernel
test, thanks!

-- 
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/20240522/fe8b3f13/attachment.sig>


More information about the U-Boot mailing list