diff options
author | Simon Glass <sjg@chromium.org> | 2016-07-31 17:35:08 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-08-05 20:55:22 -0400 |
commit | 27c087d58ab703f15211629abfa4a47f19974b9e (patch) | |
tree | 5acc83311a431be6acf3f84b474579bcab5ab810 /test/py/u_boot_console_base.py | |
parent | 851271a71ada94d3ae52057c5cea465f4ba9f621 (diff) | |
download | u-boot-27c087d58ab703f15211629abfa4a47f19974b9e.tar.gz |
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>
Diffstat (limited to 'test/py/u_boot_console_base.py')
-rw-r--r-- | test/py/u_boot_console_base.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/py/u_boot_console_base.py b/test/py/u_boot_console_base.py index 356cf801b4..b855b10ecc 100644 --- a/test/py/u_boot_console_base.py +++ b/test/py/u_boot_console_base.py @@ -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 |