Lines Matching refs:host

61         host, at, outputdir = self._install()
64 if not host.is_client_install_supported:
70 host.erase_dir_contents(outputdir)
71 func(self, mytest, host, at, outputdir)
87 self.host = None
98 if not self.host:
100 self.host = hosts.create_target_machine(
104 if not self.host.is_client_install_supported:
105 return self.host, None, None
107 tmp_dir = self.host.get_tmp_dir(parent="/tmp/sysinfo")
108 self.autotest = autotest.Autotest(self.host)
110 self.outputdir = self.host.get_tmp_dir()
114 self.host.close()
117 self.host.hostname)
118 self.host = None
124 if not self.host.is_client_install_supported:
125 return self.host, None, None
129 autodir = self.host.get_autodir()
130 if not autodir or not self.host.path_exists(autodir):
134 if not self.host.path_exists(self.outputdir):
135 self.host.run('mkdir -p %s' % self.outputdir)
137 return self.host, self.autotest, self.outputdir
140 def _pull_pickle(self, host, outputdir): argument
145 host.get_file(os.path.join(outputdir, "sysinfo.pickle"), path)
149 def _push_pickle(self, host, outputdir): argument
153 host.send_file(self.pickle,
159 def _pull_sysinfo_keyval(self, host, outputdir, mytest): argument
163 host.get_file(os.path.join(outputdir, "sysinfo"), mytest.outputdir)
168 host.get_file(os.path.join(outputdir, "keyval"), path)
176 def before_hook(self, mytest, host, at, outputdir): argument
181 self._pull_pickle(host, outputdir)
186 def before_iteration_hook(self, mytest, host, at, outputdir): argument
189 self._push_pickle(host, outputdir);
197 self._pull_pickle(host, outputdir)
202 def after_iteration_hook(self, mytest, host, at, outputdir): argument
204 self._push_pickle(host, outputdir);
212 self._pull_pickle(host, outputdir)
217 def after_hook(self, mytest, host, at, outputdir): argument
218 self._push_pickle(host, outputdir);
223 self._pull_sysinfo_keyval(host, outputdir, mytest)
227 if self.host and self.autotest:
233 self.host.close()
235 self.host.erase_dir_contents(self.outputdir)
279 host = dargs[mytest.host_parameter]
280 if host:
281 host.log_kernel()