Lines Matching full:hostname
101 _ReportResult = namedtuple('_ReportResult', ['hostname', 'message'])
184 def _create_host(hostname, afe, afe_host): argument
191 @param hostname Hostname of the target DUT.
196 'hostname': hostname,
198 'host_info_store': afe_store.AfeStore(hostname, afe),
245 def _update_host_attributes(afe, hostname, host_attrs): argument
249 @param hostname Host name of the DUT.
253 s_hostname, s_port, s_serial = _extract_servo_attributes(hostname,
257 hostname=hostname)
260 hostname=hostname)
264 hostname=hostname)
268 def _extract_servo_attributes(hostname, host_attrs): argument
273 # Grab the servo hostname/port/serial from `host_attrs` if supplied.
279 servo_host.make_servo_hostname(hostname))
337 def _get_afe_host(afe, hostname, host_attrs, arguments): argument
347 @param hostname Host name of the DUT.
356 hostlist = afe.get_hosts([hostname])
373 _update_host_attributes(afe, hostname, host_attrs)
375 afe_host = afe.create_host(hostname,
380 _update_host_attributes(afe, hostname, host_attrs)
387 afe_host = afe.get_hosts([hostname])[0]
414 afe_host.hostname))
431 s_host, s_port, s_serial = _extract_servo_attributes(host.hostname,
433 return preparedut.create_cros_host(host.hostname, arguments.board,
496 def _install_and_update_afe(afe, hostname, host_attrs, arguments): argument
508 @param hostname Host name of the DUT.
513 afe_host, unlock_on_failure = _get_afe_host(afe, hostname, host_attrs,
517 host = _create_host(hostname, afe, afe_host)
529 host__hostname=hostname, platform=True)
553 def _install_dut(arguments, host_attr_dict, hostname): argument
559 @param hostname Host name of the DUT to install on.
572 logpath = os.path.join(arguments.logdir, hostname + '.log')
579 _install_and_update_afe(afe, hostname,
580 host_attr_dict.get(hostname, {}),
608 report_log.write('{result.hostname:30} {result.message}\n'
632 for result, hostname in zip(results, hostnames):
634 successful_hosts.append(hostname)
636 failure_reports.append(_ReportResult(hostname, result))
642 result = _ReportResult(h.hostname,
652 result = _ReportResult(h.hostname,
690 @param servo_hostname: Hostname of the servo host to check for.
699 afe_host = afe.get_hosts(hostname=host)
712 @param servo_hostname: Hostname of the servo host.
722 # If no servo hostname was specified we can assume we're dealing with a
723 # servo v3 or older deployment since the servo hostname can be
724 # inferred from the dut hostname (by appending '-servo' to it). We only
753 Get the servo port from the afe if it matches the same servo host hostname.
755 @param host_info HostInfo tuple (hostname, host_attr_dict).
757 @returns Servo port (int) if servo host hostname matches the one specified
763 afe_hosts = afe.get_hosts(hostname=host_info.hostname)
783 @param host_info_list List of HostInfo tuples (hostname, host_attr_dict).
796 # servo host hostname and the servo port is set, use that port.
804 host_attributes[host_info.hostname] = host_attr_dict
907 ' image.', host.hostname)
928 ' %s: %s' % (host.hostname, str(e)))