mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
test/py: Provide a way to get early console output
Some tests want to check the console output from SPL or U-Boot proper. Provide a means to do this. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
c7f636f59d
commit
ebec58fbcb
2 changed files with 23 additions and 0 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue