Lines Matching full:host
20 # create mock host object
21 self.host = self.god.create_mock_class(hosts.RemoteHost, "host")
22 self.host.hostname = "hostname"
23 self.host.job = self.god.create_mock_class(server_job.server_job,
25 self.host.job.run_test_cleanup = True
26 self.host.job.sysinfo = self.god.create_mock_class(
28 self.host.job.profilers = self.god.create_mock_class(
30 self.host.job.profilers.add_log = {}
31 self.host.job.tmpdir = "/job/tmp"
32 self.host.job.default_profile_only = False
33 self.host.job.args = []
34 self.host.job.record = lambda *args: None
35 self.host.verify_job_repo_url = lambda *args: None
73 self.autotest = autotest.Autotest(self.host)
74 self.autotest.job = self.host.job
97 self.host.wait_up.expect_call(timeout=30)
98 self.host.setup.expect_call()
99 self.host.get_autodir.expect_call().and_return("autodir")
100 self.host.set_autodir.expect_call("autodir")
101 self.host.run.expect_call('mkdir -p autodir')
102 self.host.run.expect_call('rm -rf autodir/results/*',
116 self.host.run.expect_call('rm -f "autodir/packages.checksum"')
121 self.host.send_file.expect_call('source_material', 'autodir',
125 self.host.run.expect_call('autodir/bin/fs_sync.py', ignore_status=True)
143 self.autotest._install_using_send_file.expect_call(self.host,
147 self.host.run.expect_call('autodir/bin/fs_sync.py', ignore_status=True)
163 run_function=self.host.run, run_function_dargs=dict(timeout=600))
168 self.host.run.expect_call(cmd)
187 self.autotest.install.expect_call(self.host, use_packaging=True)
188 self.host.wait_up.expect_call(timeout=30)
190 run_obj = autotest._Run.expect_new(self.host, '.', None, False, False)
207 self.host.run.expect_call(cmd, ignore_status=True)
226 self.host.job.preprocess_client_state.expect_call().and_return(
228 self.host.send_file.expect_call(
232 self.host.send_file.expect_call("temp", run_obj.remote_control_file)
246 def mock_get_client_autodir_paths(cls, host): argument
253 (self.host.run.expect_call(command)
259 self.host.get_autodir.expect_call().and_return(None)
261 self.host.run.expect_call('test -x /another/path/bin/autotest')
262 self.host.run.expect_call('test -w /another/path')
264 autodir = autotest.Autotest.get_installed_autodir(self.host)
270 self.host.get_autodir.expect_call().and_return(None)
274 self.host.run.expect_call('mkdir -p /another/path')
275 self.host.run.expect_call('test -w /another/path')
277 install_dir = autotest.Autotest.get_install_dir(self.host)
282 collector = autotest.log_collector.expect_new(self.host, '', '')
283 logger = autotest.client_logger(self.host, '', '')
291 collector = autotest.log_collector.expect_new(self.host, '', '')
292 logger = autotest.client_logger(self.host, '', '')
294 self.host.run.expect_call('echo A > /autotest/fifo2').and_raises(
301 collector = autotest.log_collector.expect_new(self.host, '', '')
302 logger = autotest.client_logger(self.host, '', '')
314 self.host.run.expect_call('echo B > /autotest/fifo3').and_raises(