balena-io-hardware / autokit-interface-sw

Apache License 2.0
5 stars 2 forks source link

confirm DUT is off during flashing procedures #56

Closed rcooke-warwick closed 1 year ago

rcooke-warwick commented 1 year ago

Some devices have a capacitor that will leave the board in a powered on state for some period of time despite it being powered off via the relay. This would lead to problems where the flashing route and then test scripts would proceed despite the DUT not having booted from the internally flashed image.

This PR waits to confirm the DUT is off before continuing - the timeout can be set via the env var TIMEOUT on the autokit. If the DUT is confirmed to be off before the TIMEOUT has fully elapsed, it will continue without waiting for the full period.

Change-type: patch

floion commented 1 year ago

@rcooke-warwick the nice github comment you left would sit well in the git log too :D

rcooke-warwick commented 1 year ago

this does not satisfy the functionality required - when devices power off the ethernet will not be active