deploy: Try reboot and then cold-reset after install image on the DUT am: 759ab56438 am: bd8fee96af am: b2da9b9bfe am: f3c3482592
Original change: undetermined
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I2345d5f59a4b886853534b3a98f641227ff4cb29
diff --git a/site_utils/deployment/prepare/dut.py b/site_utils/deployment/prepare/dut.py
index d49d9f1..6b80285 100644
--- a/site_utils/deployment/prepare/dut.py
+++ b/site_utils/deployment/prepare/dut.py
@@ -408,7 +408,11 @@
host.run('chromeos-install --yes', timeout=host.INSTALL_TIMEOUT)
logging.info("Rebooting DUT to boot from hard drive.")
- power_cycle_via_servo(host)
+ try:
+ host.reboot()
+ except Exception as e:
+ logging.info('Failed to reboot DUT via ssh; %s', str(e))
+ try_reset_by_servo(host)
logging.info("Install test image completed successfully.")