]> git.sur5r.net Git - u-boot/commitdiff
test/py: only check for SPL signature if SPL uses serial output
authorHeiko Schocher <hs@denx.de>
Wed, 17 Feb 2016 17:32:51 +0000 (18:32 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 24 Feb 2016 23:44:00 +0000 (18:44 -0500)
check for U-Boot SPL signature only if SPL really has a serial output.
So check if CONFIG_SPL_SERIAL_SUPPORT is active in board config.

Signed-off-by: Heiko Schocher <hs@denx.de>
Tested-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
test/py/u_boot_console_base.py

index bc2bd767e40e32da0a56e4963f7bd50aece8a6bd..d6502c6e64cb1e2f563d1d925ebe50edd83c3db0 100644 (file)
@@ -303,8 +303,13 @@ 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':
-                m = self.p.expect([pattern_u_boot_spl_signon] + self.bad_patterns)
+            bcfg = self.config.buildconfig
+            config_spl = bcfg.get('config_spl', 'n') == 'y'
+            config_spl_serial_support = bcfg.get('config_spl_serial_support',
+                                                 'n') == 'y'
+            if config_spl and config_spl_serial_support:
+                m = self.p.expect([pattern_u_boot_spl_signon] +
+                                  self.bad_patterns)
                 if m != 0:
                     raise Exception('Bad pattern found on console: ' +
                                     self.bad_pattern_ids[m - 1])