Lines Matching refs:expect_call
70 utils.get_server_dir.expect_call().and_return(self.serverdir)
91 location = os.path.abspath.expect_call(location).and_return(location)
94 utils.get.expect_call(os.path.join(self.serverdir,
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"')
118 c.get_config_value.expect_call('PACKAGES',
121 self.host.send_file.expect_call('source_material', 'autodir',
124 autotest.Autotest._send_shadow_config.expect_call()
125 self.host.run.expect_call('autodir/bin/fs_sync.py', ignore_status=True)
136 c.get_config_value.expect_call('PACKAGES',
139 os.path.exists.expect_call('/etc/cros_chroot_version').and_return(True)
140 c.get_config_value.expect_call('PACKAGES',
143 self.autotest._install_using_send_file.expect_call(self.host,
146 autotest.Autotest._send_shadow_config.expect_call()
147 self.host.run.expect_call('autodir/bin/fs_sync.py', ignore_status=True)
158 c.get_config_value.expect_call('PACKAGES',
160 os.path.exists.expect_call('/etc/cros_chroot_version').and_return(True)
168 self.host.run.expect_call(cmd)
169 pkgmgr.install_pkg.expect_call('autotest', 'client', pkg_dir,
187 self.autotest.install.expect_call(self.host, use_packaging=True)
188 self.host.wait_up.expect_call(timeout=30)
189 os.path.abspath.expect_call('.').and_return('.')
198 run_obj.verify_machine.expect_call()
201 os.makedirs.expect_call(debug)
207 self.host.run.expect_call(cmd, ignore_status=True)
209 utils.get.expect_call(control, local_copy=True).and_return("temp")
212 c.get_config_value.expect_call("PACKAGES",
220 os.path.exists.expect_call('/etc/cros_chroot_version').and_return(True)
221 autotest.open.expect_call("temp").and_return(cfile)
222 cfile.read.expect_call().and_return(cfile_orig)
223 autotest.open.expect_call("temp", 'w').and_return(cfile)
224 cfile.write.expect_call(cfile_new)
226 self.host.job.preprocess_client_state.expect_call().and_return(
228 self.host.send_file.expect_call(
230 os.remove.expect_call("/job/tmp/file1")
232 self.host.send_file.expect_call("temp", run_obj.remote_control_file)
233 os.path.abspath.expect_call('temp').and_return('control_file')
234 os.path.abspath.expect_call('control').and_return('control')
235 os.remove.expect_call("temp")
237 run_obj.execute_control.expect_call(timeout=30,
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')
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')
284 collector.collect_client_job_results.expect_call().and_raises(
286 logging.exception.expect_call(mock.is_string_comparator())
293 collector.collect_client_job_results.expect_call()
294 self.host.run.expect_call('echo A > /autotest/fifo2').and_raises(
296 logging.exception.expect_call(mock.is_string_comparator())
306 c.get_config_value.expect_call('PACKAGES',
309 c.get_config_value.expect_call('PACKAGES',
312 logger._send_tarball.expect_call('pkgname.tar.bz2', '/autotest/dest/')
314 self.host.run.expect_call('echo B > /autotest/fifo3').and_raises(
316 logging.exception.expect_call(mock.is_string_comparator())