Skip to content
Snippets Groups Projects
Commit 1235c791 authored by Stephen Warren's avatar Stephen Warren Committed by Tom Rini
Browse files

test/py: fix CONFIG_SPL test


The Python ini file parser that's used to parse .config converts all keys
to lower-case. Hence, all queries against the results must use lower-case.
Fix u_boot_console.ensure_spawned() to test CONFIG_SPL correctly, or the
connection will fail for boards that have SPL.

Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent 07bf2122
No related branches found
No related tags found
No related merge requests found
...@@ -303,7 +303,7 @@ class ConsoleBase(object): ...@@ -303,7 +303,7 @@ class ConsoleBase(object):
if not self.config.gdbserver: if not self.config.gdbserver:
self.p.timeout = 30000 self.p.timeout = 30000
self.p.logfile_read = self.logstream self.p.logfile_read = self.logstream
if self.config.buildconfig.get('CONFIG_SPL', False) == 'y': if self.config.buildconfig.get('config_spl', False) == 'y':
m = self.p.expect([pattern_u_boot_spl_signon] + self.bad_patterns) m = self.p.expect([pattern_u_boot_spl_signon] + self.bad_patterns)
if m != 0: if m != 0:
raise Exception('Bad pattern found on console: ' + raise Exception('Bad pattern found on console: ' +
......
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