Lines Matching full:host
33 # maps hostname to (host object, autotest.Autotest object, Autotest
34 # install dir), where the host object is the one created specifically
68 for host in self.job.hosts:
69 if host.hostname not in self.job.machines:
70 # job.hosts include all host instances created on the fly.
74 autodir = host.get_autodir()
76 in_use_hosts[host.hostname] = host
79 # determine what valid host objects we already have installed
81 for host, at, profiler_dir in self.installed_hosts.values():
82 if host.path_exists(profiler_dir):
83 profiler_hosts.add(host.hostname)
87 host.hostname, profiler_dir)
88 del self.installed_hosts[host.hostname]
94 host = in_use_hosts[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)
105 def _get_hosts(self, host=None): argument
107 Returns a list of (Host, Autotest, install directory) tuples for hosts
108 currently supported by this profiler. The returned Host object is always
110 'host' is not None, all entries not matching that host object are
113 if host is None:
115 if host.hostname in self.installed_hosts:
116 return [self.installed_hosts[host.hostname]]
133 def _get_failure_logs(self, autodir, test, host): argument
140 dir=self._get_local_profilers_dir(test, host.hostname))
142 host.get_file(get_profiler_log_path(autodir), path)
144 self._get_profiler_logs(autodir, test, host)
152 for host, at, autodir in hosts:
153 self._get_failure_logs(autodir, test, host)
156 def _get_profiler_logs(self, autodir, test, host): argument
158 local_dir = self._get_local_profilers_dir(test, host.hostname)
160 self.job.remove_client_log(host.hostname, results_dir, local_dir)
164 host.get_file(results_dir + '/', tempdir)
181 for host, at, autodir in hosts:
183 host.hostname,
189 self._get_failure_logs(autodir, test, host)
194 host.hostname)
195 self.job.add_client_log(host.hostname, remote_results_dir,
206 def before_start(self, test, host=None): argument
207 # create host objects and install the needed clients
210 self._run_clients(test, self._get_hosts(host))
213 def start(self, test, host=None): argument
214 hosts = self._get_hosts(host)
240 def report(self, test, host=None): argument
243 hosts = self._get_hosts(host)
246 if not host:
255 for host, at, autodir in hosts:
256 self._get_profiler_logs(autodir, test, host)
259 def handle_reboot(self, host): argument
269 self.report(test, host)
270 self.before_start(test, host)
271 self.start(test, host)