Skip to content
Snippets Groups Projects
Commit b1309a23 authored by Heiko Schocher's avatar Heiko Schocher Committed by Tom Rini
Browse files

test/py: only check for SPL signature if SPL uses serial output


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: default avatarHeiko Schocher <hs@denx.de>
Tested-by: default avatarStephen Warren <swarren@nvidia.com>
Reviewed-by: default avatarStephen Warren <swarren@nvidia.com>
parent ed48899c
No related branches found
No related tags found
No related merge requests found
...@@ -303,8 +303,13 @@ class ConsoleBase(object): ...@@ -303,8 +303,13 @@ 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': bcfg = self.config.buildconfig
m = self.p.expect([pattern_u_boot_spl_signon] + self.bad_patterns) 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: if m != 0:
raise Exception('Bad pattern found on console: ' + raise Exception('Bad pattern found on console: ' +
self.bad_pattern_ids[m - 1]) self.bad_pattern_ids[m - 1])
......
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