summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLove Kumar <love.kumar@amd.com>2024-05-22 18:45:13 +0530
committerTom Rini <trini@konsulko.com>2024-06-13 16:31:20 -0600
commita57973ab47615f9d471b0c1d51554803c533df3a (patch)
tree784c9e081665389f62adb4833c74f06625029cce /lib
parent065ed551e332a0bbd95daf439d4bf636c86ad00f (diff)
downloadu-boot-a57973ab47615f9d471b0c1d51554803c533df3a.tar.gz
u-boot-a57973ab47615f9d471b0c1d51554803c533df3a.tar.bz2
u-boot-a57973ab47615f9d471b0c1d51554803c533df3a.zip
test/py: Add support to enable check for bad pattern
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@amd.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions