From: Stephen Warren Date: Wed, 10 Feb 2016 19:39:30 +0000 (-0700) Subject: test/py: fix CONFIG_SPL test X-Git-Tag: v2016.03-rc2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1235c791827ce6040d4e0103cb6d84a150a84d3c;p=u-boot 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 Acked-by: Simon Glass --- diff --git a/test/py/u_boot_console_base.py b/test/py/u_boot_console_base.py index 7e1e9d430f..58575704ad 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: ' +