Message ID | 1453964274-9129-5-git-send-email-swarren@wwwdotorg.org |
---|---|
State | Accepted |
Commit | 9129d9f5fd73a8bcdca7489b3ed2418a8b1416e2 |
Delegated to: | Simon Glass |
Headers | show |
On 27 January 2016 at 23:57, Stephen Warren <swarren@wwwdotorg.org> wrote: > From: Stephen Warren <swarren@nvidia.com> > > 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: Stephen Warren <swarren@nvidia.com> > --- > test/py/u_boot_console_base.py | 2 ++ > 1 file changed, 2 insertions(+) Acked-by: Simon Glass <sjg@chromium.org>
On 28 January 2016 at 20:47, Simon Glass <sjg@chromium.org> wrote: > On 27 January 2016 at 23:57, Stephen Warren <swarren@wwwdotorg.org> wrote: >> From: Stephen Warren <swarren@nvidia.com> >> >> 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: Stephen Warren <swarren@nvidia.com> >> --- >> test/py/u_boot_console_base.py | 2 ++ >> 1 file changed, 2 insertions(+) > > Acked-by: Simon Glass <sjg@chromium.org> Applied to u-boot-dm, thanks!
diff --git a/test/py/u_boot_console_base.py b/test/py/u_boot_console_base.py index 71a00e863385..392f8cb88532 100644 --- a/test/py/u_boot_console_base.py +++ b/test/py/u_boot_console_base.py @@ -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_unknown_command = re.compile('Unknown command \'.*\' - try \'help\'') pattern_error_notification = re.compile('## Error: ') +pattern_error_please_reset = re.compile('### ERROR ### Please RESET the board ###') PAT_ID = 0 PAT_RE = 1 @@ -32,6 +33,7 @@ bad_pattern_defs = ( ('stop_autoboot_prompt', pattern_stop_autoboot_prompt), ('unknown_command', pattern_unknown_command), ('error_notification', pattern_error_notification), + ('error_please_reset', pattern_error_please_reset), ) class ConsoleDisableCheck(object):