summaryrefslogtreecommitdiff
path: root/test/py
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2016-02-10 12:39:30 -0700
committerTom Rini <trini@konsulko.com>2016-02-15 20:58:28 +0000
commit1235c791827ce6040d4e0103cb6d84a150a84d3c (patch)
treed157d1961ff401cc9693f16ed8867b83c745344f /test/py
parent07bf2122df36732dd9591db3358f850a666fc6cb (diff)
downloadu-boot-imx-1235c791827ce6040d4e0103cb6d84a150a84d3c.zip
u-boot-imx-1235c791827ce6040d4e0103cb6d84a150a84d3c.tar.gz
u-boot-imx-1235c791827ce6040d4e0103cb6d84a150a84d3c.tar.bz2
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: Stephen Warren <swarren@nvidia.com> Acked-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 7e1e9d4..5857570 100644
--- a/test/py/u_boot_console_base.py
+++ b/test/py/u_boot_console_base.py
@@ -303,7 +303,7 @@ class ConsoleBase(object):
if not self.config.gdbserver:
self.p.timeout = 30000
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)
if m != 0:
raise Exception('Bad pattern found on console: ' +