[PATCH] pytest:Shutdown power-supply to board after the pytest execution

Stephen Warren swarren at wwwdotorg.org
Thu May 27 23:42:34 CEST 2021


On 5/27/21 2:33 AM, opensource.kab at gmail.com wrote:
> From: Adarsh Babu Kalepalli <opensource.kab at 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.

FWIW, this violates the original design of the test system. Turning the 
board off at the end of the test is a policy decision that not all 
use-cases will want, and hence not something that the test system should 
mandate. Instead, the intention is for the user to invoke the test 
system using a script that does something like:

1) Power on board.
2) Run test.
3) Power off board.

See ./doc/develop/py_testing.rst in the U-Boot source for more 
background info, or the following URL for an example script:

https://github.com/swarren/u-boot-ci-scripts/blob/master/test.sh


More information about the U-Boot mailing list