
12 Dec
2016
12 Dec
'16
6:29 p.m.
On 12/04/2016 05:52 PM, Stefan BrĂ¼ns wrote:
The runner actually has no console dependency, only on the log provided by the console. Accept both u_boot_console or a multiplexed_log.
Either this approach or updating all callers to always pass the log object is fine by me. So if you need it,
Acked-by: Stephen Warren swarren@nvidia.com
One nit:
diff --git a/test/py/u_boot_utils.py b/test/py/u_boot_utils.py
- if hasattr(u_boot_console_or_log, 'get_runner'):
get_runner = u_boot_console_or_log.get_runner
- else:
get_runner = u_boot_console_or_log.log.get_runner
- runner = get_runner(cmd[0], sys.stdout)
- if hasattr(u_boot_console_or_log, 'get_runner'):
get_runner = u_boot_console_or_log.get_runner
- else:
get_runner = u_boot_console_or_log.log.get_runner
- runner = get_runner(cmd[0], sys.stdout)
It would be nice to put that into a utility function so as not to duplicate it, if you keep this approach.