Skip to content
Snippets Groups Projects
Commit 9129d9f5 authored by Stephen Warren's avatar Stephen Warren Committed by Simon Glass
Browse files

test/py: detect another "bad pattern" in console output


Many error situations in U-Boot print the message:
    ### ERROR ### Please RESET the board ###

Add this to the list of bad patterns the test system detects. One
practical advantage of this change is to detect the case where sandbox
is told to use a particular DTB file, and the file cannot be opened.

Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent 0c6189b5
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,7 @@ pattern_u_boot_main_signon = re.compile('(U-Boot \\d{4}\\.\\d{2}-[^\r\n]*)') ...@@ -22,6 +22,7 @@ pattern_u_boot_main_signon = re.compile('(U-Boot \\d{4}\\.\\d{2}-[^\r\n]*)')
pattern_stop_autoboot_prompt = re.compile('Hit any key to stop autoboot: ') pattern_stop_autoboot_prompt = re.compile('Hit any key to stop autoboot: ')
pattern_unknown_command = re.compile('Unknown command \'.*\' - try \'help\'') pattern_unknown_command = re.compile('Unknown command \'.*\' - try \'help\'')
pattern_error_notification = re.compile('## Error: ') pattern_error_notification = re.compile('## Error: ')
pattern_error_please_reset = re.compile('### ERROR ### Please RESET the board ###')
PAT_ID = 0 PAT_ID = 0
PAT_RE = 1 PAT_RE = 1
...@@ -32,6 +33,7 @@ bad_pattern_defs = ( ...@@ -32,6 +33,7 @@ bad_pattern_defs = (
('stop_autoboot_prompt', pattern_stop_autoboot_prompt), ('stop_autoboot_prompt', pattern_stop_autoboot_prompt),
('unknown_command', pattern_unknown_command), ('unknown_command', pattern_unknown_command),
('error_notification', pattern_error_notification), ('error_notification', pattern_error_notification),
('error_please_reset', pattern_error_please_reset),
) )
class ConsoleDisableCheck(object): class ConsoleDisableCheck(object):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment