cr50_test: before cleanup press power button to turn ap on
BUG=none
BRANCH=none
TEST=run firmware_Cr50OpenWhileAPOff
Change-Id: Ie4a477435fec8b347ba804353d75e8b79606391e
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/1612287
Reviewed-by: Kevin Shelton <kmshelton@chromium.org>
diff --git a/server/cros/faft/cr50_test.py b/server/cros/faft/cr50_test.py
index 6b0aa5b..52d2ea0 100644
--- a/server/cros/faft/cr50_test.py
+++ b/server/cros/faft/cr50_test.py
@@ -427,6 +427,14 @@
def _confirm_dut_is_pingable(self):
"""Reset the DUT if it doesn't respond to ping"""
logging.info('checking dut state')
+
+ self.servo.set('cold_reset', 'off')
+ self.servo.set('warm_reset', 'off')
+ time.sleep(self.cr50.SHORT_WAIT)
+ if not self.cr50.ap_is_on():
+ logging.info('Pressing power button to turn on AP')
+ self.servo.power_short_press()
+
end_time = time.time() + self.RESPONSE_TIMEOUT
while not self.host.ping_wait_up(
self.faft_config.delay_reboot_to_ping):