mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 17:10:11 +00:00
test/py: Return output from run_and_log()
It is useful to be able to obtain the output from a command. Return it from this function. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Teddy Reed <teddy.reed@gmail.com>
This commit is contained in:
parent
86845bf38d
commit
f3d3e95ce5
1 changed files with 3 additions and 2 deletions
|
@ -165,12 +165,13 @@ def run_and_log(u_boot_console, cmd, ignore_errors=False):
|
||||||
problems occur.
|
problems occur.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
Nothing.
|
The output as a string.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
runner = u_boot_console.log.get_runner(cmd[0], sys.stdout)
|
runner = u_boot_console.log.get_runner(cmd[0], sys.stdout)
|
||||||
runner.run(cmd, ignore_errors=ignore_errors)
|
output = runner.run(cmd, ignore_errors=ignore_errors)
|
||||||
runner.close()
|
runner.close()
|
||||||
|
return output
|
||||||
|
|
||||||
ram_base = None
|
ram_base = None
|
||||||
def find_ram_base(u_boot_console):
|
def find_ram_base(u_boot_console):
|
||||||
|
|
Loading…
Reference in a new issue