Lines Matching refs:host
71 host = hosts.create_host(machine_dict)
73 **servo_host.get_servo_args_for_host(host))
75 host.set_servo_host(servohost)
76 host.servo.uart_logs_dir = logs_dir
78 yield host
80 host.close()
83 def download_image_to_servo_usb(host, build): argument
89 host.servo.image_to_servo_usb(host.stage_image_for_servo(build))
92 def install_test_image(host): argument
100 host.servo_install()
103 def flash_firmware_using_servo(host, build): argument
110 host.firmware_install(build)
113 def install_firmware(host, force): argument
129 servo = host.servo
140 if not host.wait_up(timeout=host.USB_BOOT_TIMEOUT):
146 host.run('flashrom -p %s --wp-disable' % fprom,
150 pid = _start_firmware_update(host, force, fw_update_log)
151 _wait_firmware_update_process(host, pid)
152 _check_firmware_update_result(host, fw_update_log)
156 host.run('/usr/share/vboot/bin/set_gbb_flags.sh 0',
158 host.run('crossystem disable_dev_request=1',
160 host.halt()
163 def _start_firmware_update(host, force, result_file): argument
184 return host.run_background(';'.join(cmd))
187 def _wait_firmware_update_process(host, pid, timeout=_FIRMWARE_UPDATE_TIMEOUT): argument
196 lambda: host.run('ps -f -p %s' % pid, timeout=20).exit_status,
205 if not host.wait_up(timeout=host.USB_BOOT_TIMEOUT):
210 def _check_firmware_update_result(host, result_file): argument
218 result = host.run('cat %s' % result_file)