Lines Matching refs:host

66         host, at, outputdir = self._install()
69 if not host.is_client_install_supported:
75 host.erase_dir_contents(outputdir)
76 func(self, mytest, host, at, outputdir)
95 self.host = None
106 if not self.host:
108 self.host = hosts.create_target_machine(
112 if not self.host.is_client_install_supported:
113 return self.host, None, None
116 self.host.delete_all_tmp_dirs(self.AUTOTEST_PARENT_DIR)
117 self.host.delete_all_tmp_dirs(self.OUTPUT_PARENT_DIR)
119 tmp_dir = self.host.get_tmp_dir(self.AUTOTEST_PARENT_DIR)
120 self.autotest = autotest.Autotest(self.host)
122 self.outputdir = self.host.get_tmp_dir(self.OUTPUT_PARENT_DIR)
126 self.host.close()
129 self.host.hostname)
130 self.host = None
136 if not self.host.is_client_install_supported:
137 return self.host, None, None
141 autodir = self.host.get_autodir()
142 if not autodir or not self.host.path_exists(autodir):
146 if not self.host.path_exists(self.outputdir):
147 self.host.run('mkdir -p %s' % self.outputdir)
149 return self.host, self.autotest, self.outputdir
152 def _pull_pickle(self, host, outputdir): argument
157 host.get_file(os.path.join(outputdir, "sysinfo.pickle"), path)
161 def _push_pickle(self, host, outputdir): argument
165 host.send_file(self.pickle,
171 def _pull_sysinfo_keyval(self, host, outputdir, mytest): argument
175 host.get_file(os.path.join(outputdir, "sysinfo"), mytest.outputdir)
180 host.get_file(os.path.join(outputdir, "keyval"), path)
188 def before_hook(self, mytest, host, at, outputdir): argument
193 self._pull_pickle(host, outputdir)
198 def before_iteration_hook(self, mytest, host, at, outputdir): argument
201 self._push_pickle(host, outputdir);
209 self._pull_pickle(host, outputdir)
214 def after_iteration_hook(self, mytest, host, at, outputdir): argument
216 self._push_pickle(host, outputdir);
224 self._pull_pickle(host, outputdir)
229 def after_hook(self, mytest, host, at, outputdir): argument
230 self._push_pickle(host, outputdir);
235 self._pull_sysinfo_keyval(host, outputdir, mytest)
239 if self.host and self.autotest:
245 self.host.close()
247 self.host.erase_dir_contents(self.outputdir)
299 host = dargs[mytest.host_parameter]
300 if host:
301 host.log_kernel()