]> git.sur5r.net Git - u-boot/blobdiff - test/py/u_boot_console_base.py
test/py: Provide a way to get early console output
[u-boot] / test / py / u_boot_console_base.py
index 2dcb2894f96242902ceb897accada97622025f5d..3d2ac448757d59906135ab7e644eacd7f8801be4 100644 (file)
@@ -377,6 +377,16 @@ class ConsoleBase(object):
             pass
         self.p = None
 
+    def get_spawn_output(self):
+        """Return the start-up output from U-Boot
+
+        Returns:
+            The output produced by ensure_spawed(), as a string.
+        """
+        if self.p:
+            return self.p.get_expect_output()
+        return None
+
     def validate_version_string_in_text(self, text):
         """Assert that a command's output includes the U-Boot signon message.