cros_ec_softrec_power: Add regexp after commands.
The power state driver should really verify that the commands it issues
actually take effect before continuing forward with execution.
This commit adds checks for the EC reset cause string which will be
printed after a reboot and the events string which will be printed after
setting or clearing hostevents. Execution blocks until those strings
are seen before utimately timing out if an error occurs.
TEST=`dut-control power_state:off && dut-control power_state:rec` for
ultima and cyan. Verified that DUT boots into recovery mode.
Signed-off-by: Aseda Aboagye <firstname.lastname@example.org>
Commit-Ready: Aseda Aboagye <email@example.com>
Tested-by: Aseda Aboagye <firstname.lastname@example.org>
Reviewed-by: danny chan <email@example.com>
1 file changed