summaryrefslogtreecommitdiff
path: root/test/py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-11-15 18:43:56 -0700
committerTom Rini <trini@konsulko.com>2018-11-26 08:25:34 -0500
commitd6330064634aa698c0a686002ceeb19b3de0d71f (patch)
tree0d23c8414619ad3b11504fc18c8dd340f96824ec /test/py
parent2d424eb0cd6fc5c0060756e41feec3ec7e483678 (diff)
downloadu-boot-d6330064634aa698c0a686002ceeb19b3de0d71f.tar.gz
u-boot-d6330064634aa698c0a686002ceeb19b3de0d71f.tar.bz2
u-boot-d6330064634aa698c0a686002ceeb19b3de0d71f.zip
spl: Add a define for SPL_TPL_PROMPT
We should use a macro rather than hard-coding the SPL prompt to 'spl' since the code can be used by TPL too. Add a macro that works for both and use it in various places. This allows TPL to use the same code without printing confusing messages. Note that the string is lower case ('spl', 'tpl') which is a change from previously. Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/py')
-rw-r--r--test/py/u_boot_console_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/py/u_boot_console_base.py b/test/py/u_boot_console_base.py
index 326b2ac51f..e044eb3ea1 100644
--- a/test/py/u_boot_console_base.py
+++ b/test/py/u_boot_console_base.py
@@ -16,7 +16,7 @@ import sys
import u_boot_spawn
# Regexes for text we expect U-Boot to send to the console.
-pattern_u_boot_spl_signon = re.compile('(U-Boot SPL \\d{4}\\.\\d{2}[^\r\n]*\\))')
+pattern_u_boot_spl_signon = re.compile('(U-Boot spl \\d{4}\\.\\d{2}[^\r\n]*\\))')
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\'')