Lines Matching refs:host

67         for host in self.job.hosts:
68 if host.hostname not in self.job.machines:
73 autodir = host.get_autodir()
75 in_use_hosts.add(host.hostname)
80 for host, at, profiler_dir in self.installed_hosts.values():
81 if host.path_exists(profiler_dir):
82 profiler_hosts.add(host.hostname)
86 host.hostname, profiler_dir)
87 host.close()
88 del self.installed_hosts[host.hostname]
94 host = hosts.create_host(hostname)
95 tmp_dir = host.get_tmp_dir(parent=PROFILER_TMPDIR)
96 at = autotest.Autotest(host)
98 self.installed_hosts[host.hostname] = (host, at, tmp_dir)
104 for host in hosts_to_drop:
105 host.close()
106 del self.installed_hosts[host.hostname]
109 def _get_hosts(self, host=None): argument
117 if host is None:
119 if host.hostname in self.installed_hosts:
120 return [self.installed_hosts[host.hostname]]
137 def _get_failure_logs(self, autodir, test, host): argument
144 dir=self._get_local_profilers_dir(test, host.hostname))
146 host.get_file(get_profiler_log_path(autodir), path)
148 self._get_profiler_logs(autodir, test, host)
156 for host, at, autodir in hosts:
157 self._get_failure_logs(autodir, test, host)
160 def _get_profiler_logs(self, autodir, test, host): argument
162 local_dir = self._get_local_profilers_dir(test, host.hostname)
164 self.job.remove_client_log(host.hostname, results_dir, local_dir)
168 host.get_file(results_dir + '/', tempdir)
185 for host, at, autodir in hosts:
187 host.hostname,
193 self._get_failure_logs(autodir, test, host)
198 host.hostname)
199 self.job.add_client_log(host.hostname, remote_results_dir,
210 def before_start(self, test, host=None): argument
214 self._run_clients(test, self._get_hosts(host))
217 def start(self, test, host=None): argument
218 hosts = self._get_hosts(host)
244 def report(self, test, host=None): argument
247 hosts = self._get_hosts(host)
250 if not host:
259 for host, at, autodir in hosts:
260 self._get_profiler_logs(autodir, test, host)
263 def handle_reboot(self, host): argument
273 self.report(test, host)
274 self.before_start(test, host)
275 self.start(test, host)