summaryrefslogtreecommitdiff
path: root/test/py/u_boot_console_exec_attach.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-11-12 07:13:16 -0700
committerTom Rini <trini@konsulko.com>2024-11-13 12:01:35 -0600
commit530c694c450e5b98c50ea5b1201df474bc952ca9 (patch)
tree3b3b7a613face126874bad00d7b7e238e962d3dd /test/py/u_boot_console_exec_attach.py
parent8344038a93348d39099e03878ae253cf41ca250d (diff)
test: Release board after tests complete
When a board is finished with, the lab may want to power it off, or perform some other function. Add a new script which is called when tests are complete. Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/py/u_boot_console_exec_attach.py')
-rw-r--r--test/py/u_boot_console_exec_attach.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/py/u_boot_console_exec_attach.py b/test/py/u_boot_console_exec_attach.py
index 8dd8cc1230c..5f4916b7da2 100644
--- a/test/py/u_boot_console_exec_attach.py
+++ b/test/py/u_boot_console_exec_attach.py
@@ -70,3 +70,13 @@ class ConsoleExecAttach(ConsoleBase):
raise
return s
+
+ def close(self):
+ super().close()
+
+ self.log.action('Releasing board')
+ args = [self.config.board_type, self.config.board_identity]
+ cmd = ['u-boot-test-release'] + args
+ runner = self.log.get_runner(cmd[0], sys.stdout)
+ runner.run(cmd)
+ runner.close()