From f6d34651d8a21514abbfa32f44a0ec2014ef002b Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 31 Jul 2016 17:35:09 -0600 Subject: test: Adjust run_command_list() to return a list of strings Return one string for each command that was executed. This seems cleaner. Suggested-by: Teddy Reed Signed-off-by: Simon Glass Reviewed-by: Stephen Warren --- test/py/u_boot_console_base.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/py/u_boot_console_base.py') diff --git a/test/py/u_boot_console_base.py b/test/py/u_boot_console_base.py index b855b10ecc..ee9b928756 100644 --- a/test/py/u_boot_console_base.py +++ b/test/py/u_boot_console_base.py @@ -225,11 +225,12 @@ class ConsoleBase(object): Args: cmd: List of commands (each a string). Returns: - Combined output of all commands, as a string. + A list of output strings from each command, one element for each + command. """ - output = '' + output = [] for cmd in cmds: - output += self.run_command(cmd) + output.append(self.run_command(cmd)) return output def ctrlc(self): -- cgit v1.2.1