Lines Matching +full:timeout +full:- +full:minutes
3 # Use of this source code is governed by a BSD-style license that can be
32 # If battery level is low then sleep to 15 minutes.
35 # We expecting that battery will change more than 4% for 15 minutes.
116 `dut-control -p <SERVO-PORT> power_state:reset`.
124 if not host.wait_up(timeout=host.BOOT_TIMEOUT):
161 if not host.wait_up(timeout=host.BOOT_TIMEOUT):
169 If DUT battery still in the factory mode then DUT required re-work.
182 status = host.run(cmd, timeout=30, ignore_status=True).stdout.strip()
190 # 15 minutes to allow battery to reach required level.
209 # If level of battery is changing less than 4% per 15 minutes
212 battery_level_change = abs(last_battery_level - battery_level)
215 'Battery charged less than 4%% for 15 minutes which'
233 deploy process by run add-dut or update-dut.
268 connection to the servo by type-c, so we will be sure that communication
269 by servo is permanent, it's critical for auto-repair capability.
306 Note that we do not cleanly stop servod as part of power-cycling the DUT;
341 auto-repair capability.
346 # The DUT could be start with un-sshable state, so do shutdown from
359 if not host.wait_up(timeout=host.USB_BOOT_TIMEOUT):
364 host.run('chromeos-tpm-recovery')
366 logging.warn('chromeos-tpm-recovery is too old.')
391 # to display the dev-mode screen; some boards take their time to
403 if host.ping_wait_up(timeout=5):
408 host.run('chromeos-install --yes', timeout=host.INSTALL_TIMEOUT)
433 Rather than running `chromeos-firmwareupdate` on DUT, we can flash DUT
441 """Install dev-signed firmware after removing write-protect.
443 At start, it's assumed that hardware write-protect is disabled,
450 read-only firmware from the test image. Then we clear debug
456 # Disable software-controlled write-protect for both FPROMs, and
459 host.run('flashrom -p %s --wp-disable' % fprom,
462 fw_update_log = '/mnt/stateful_partition/home/root/cros-fw-update.log'
474 # dev-mode and clear GBB flags. GBB flags are non-zero because
482 logging.info("Rebooting DUT in normal mode(non-dev).")
488 ' non-dev mode; %s', e)
494 """Run `chromeos-firmwareupdate` in background.
504 # TODO(guocb): Use `make_dev_firmware` to re-sign from MP to test/dev.
505 fw_update_cmd = 'chromeos-firmwareupdate --mode=factory --force'
515 def _wait_firmware_update_process(host, pid, timeout=_FIRMWARE_UPDATE_TIMEOUT): argument
516 """Wait `chromeos-firmwareupdate` to finish.
519 @param pid The process ID of `chromeos-firmwareupdate`.
520 @param timeout Maximum time to wait for firmware updating.
524 lambda: host.run('ps -f -p %s' % pid, timeout=20).exit_status,
526 "chromeos-firmwareupdate (pid: %s) didn't complete in %s "
527 'seconds.' % (pid, timeout)),
528 timeout=_FIRMWARE_UPDATE_TIMEOUT,
533 if not host.wait_up(timeout=host.USB_BOOT_TIMEOUT):
543 `chromeos-firmwareupdate`.
548 raise Exception("chromeos-firmwareupdate failed!")
560 # re-imaged unconditionally.
582 serial_number = host.run('vpd -g serial_number', ignore_status=True).stdout