mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
test: Add a function to restart U-Boot
Add a proper function for this rather than using internal functions. Use it in the single call site. Also, do a restart at the end of the vboot test to reset to the normal device tree. Signed-off-by: Simon Glass <sjg@chromium.org> Suggested-by: Stephen Warren <swarren@nvidia.com>
This commit is contained in:
parent
851271a71a
commit
27c087d58a
2 changed files with 8 additions and 2 deletions
|
@ -393,6 +393,11 @@ class ConsoleBase(object):
|
|||
pass
|
||||
self.p = None
|
||||
|
||||
def restart_uboot(self):
|
||||
"""Shut down and restart U-Boot."""
|
||||
self.cleanup_spawn()
|
||||
self.ensure_spawned()
|
||||
|
||||
def get_spawn_output(self):
|
||||
"""Return the start-up output from U-Boot
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue