From: opensource.kab@gmail.com
To: u-boot@lists.denx.de
Cc: wd@denx.de, "Adarsh Babu Kalepalli" <opensource.kab@gmail.com>,
"Heinrich Schuchardt" <xypron.glpk@gmx.de>,
"Marek Behún" <marek.behun@nic.cz>,
"Simon Glass" <sjg@chromium.org>,
"Stephen Warren" <swarren@wwwdotorg.org>
Subject: [PATCH] pytest:Shutdown power-supply to board after the pytest execution
Date: Thu, 27 May 2021 14:03:05 +0530 [thread overview]
Message-ID: <20210527083305.6725-1-opensource.kab@gmail.com> (raw)
From: Adarsh Babu Kalepalli <opensource.kab@gmail.com>
After executing the test-cases from pytest ,the board
is still powered.Shutting down the board power supply at
this point ,would keep the board safe.
Signed-off-by: Adarsh Babu Kalepalli <opensource.kab@gmail.com>
---
test/py/conftest.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/test/py/conftest.py b/test/py/conftest.py
index 11a3f307ea..077358a37f 100644
--- a/test/py/conftest.py
+++ b/test/py/conftest.py
@@ -406,6 +406,13 @@ def cleanup():
"""
if console:
+ if ((console.config.board_type != "sandbox") and (console.config.board_type != "sandbox64")):
+ args = [console.config.board_type, console.config.board_identity]
+ console.log.action('Powering Down the board')
+ cmd = ['u-boot-test-power-off'] + args
+ runner = console.log.get_runner(cmd[0], sys.stdout)
+ runner.run(cmd)
+ runner.close()
console.close()
if log:
with log.section('Status Report', 'status_report'):
--
2.17.1
next reply other threads:[~2021-05-27 8:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-27 8:33 opensource.kab [this message]
2021-05-27 21:42 ` [PATCH] pytest:Shutdown power-supply to board after the pytest execution Stephen Warren
2021-05-29 13:09 ` Adarsh Babu Kalepalli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210527083305.6725-1-opensource.kab@gmail.com \
--to=opensource.kab@gmail.com \
--cc=marek.behun@nic.cz \
--cc=sjg@chromium.org \
--cc=swarren@wwwdotorg.org \
--cc=u-boot@lists.denx.de \
--cc=wd@denx.de \
--cc=xypron.glpk@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox