]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - test/py/u_boot_console_base.py
test: Adjust run_command_list() to return a list of strings
[karo-tx-uboot.git] / test / py / u_boot_console_base.py
index b855b10ecc59221204d22282fe6d99531a3a1e17..ee9b928756fab9fd43d39c30c91de49a1083934e 100644 (file)
@@ -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):