Lines Matching refs:job

12 from autotest_lib.client.bin import job, sysinfo, harness
24 job_class = job.base_client_job
28 self.god.stub_with(job.base_client_job, '_get_environ_autodir',
30 self.job = self.job_class.__new__(self.job_class)
31 self.job._job_directory = base_job_unittest.stub_job_directory
43 autodir, clientdir, _ = self.job._find_base_directories()
49 _, _, serverdir = self.job._find_base_directories()
65 self.god.stub_function_to_return(job.os, 'mkdir', None)
66 self.god.stub_function_to_return(job.os.path, 'exists', True)
67 self.god.stub_function_to_return(self.job, '_load_state', None)
68 self.god.stub_function_to_return(self.job, 'record', None)
69 self.god.stub_function_to_return(job.shutil, 'copyfile', None)
70 self.god.stub_function_to_return(job.logging_manager,
75 self.god.stub_function_to_return(job.logging_manager,
80 self.god.stub_function_to_return(job.sysinfo, 'sysinfo',
84 self.god.stub_function_to_return(job.harness, 'select', stub_harness())
97 self.god.stub_function_to_return(job.utils, 'drop_caches', None)
99 self.job._job_state = base_job_unittest.stub_job_state
100 self.job.__init__('/control', options)
153 self.god.stub_function(job, 'open')
159 self.god.stub_class(job.local_host, 'LocalHost')
162 self.god.stub_class_method(job.base_client_job,
164 self.god.stub_class_method(job.base_client_job, '_cleanup_results_dir')
166 self.god.stub_with(job.base_job.job_directory, '_ensure_valid',
176 self.god.stub_function(self.job, '_load_state')
181 job.base_client_job._cleanup_debugdir_files.expect_call()
182 job.base_client_job._cleanup_results_dir.expect_call()
184 self.job._load_state.expect_call()
189 self.job,
197 self.god.stub_function(self.job, 'config_get')
198 self.god.stub_function(self.job, 'config_set')
199 self.god.stub_function(self.job, 'record')
214 job.local_host.LocalHost.expect_new(hostname='localhost')
217 self.job.record.expect_call('START', None, None)
224 self.job = job.base_client_job.__new__(job.base_client_job)
243 self.job.__init__(self.control, options)
271 self.job = job.base_client_job.__new__(job.base_client_job)
286 self.god.stub_function(self.job, '_post_record_init')
287 self.god.stub_function(self.job, 'record')
290 self.job._post_record_init.expect_call(
292 self.job.record.expect_call(
297 Exception, self.job.__init__, self.control, options,
307 self.job.control_set(control_file)
308 self.assertEquals(self.job.control_get(), os.path.abspath(control_file))
317 harness.select.expect_call(which, self.job,
321 self.job.harness_select(which, harness_args)
337 self.assertRaises(ValueError, self.job.setup_dirs, results_dir, tmp_dir)
345 results_dir1 = os.path.join(self.job.resultdir, 'build')
346 results_dir2 = os.path.join(self.job.resultdir, 'build.2')
347 results_dir3 = os.path.join(self.job.resultdir, 'build.3')
361 self.assertEqual(self.job.setup_dirs(None, tmp_dir),
370 self.god.stub_function(self.job.pkgmgr, 'get_package_name')
371 self.god.stub_function(self.job, "_runtest")
381 outputdir = os.path.join(self.job.resultdir, testname)
382 self.job.pkgmgr.get_package_name.expect_call(
385 self.job.record.expect_call("START", testname, testname,
387 self.job._runtest.expect_call(testname, "", None, (), {}).and_raises(
389 self.job.record.expect_call("ERROR", testname, testname,
391 self.job.record.expect_call("END ERROR", testname, testname)
392 self.job.harness.run_test_complete.expect_call()
396 self.job.run_test(testname)
404 self.god.stub_function(self.job.pkgmgr, 'get_package_name')
405 self.god.stub_function(self.job, "_runtest")
416 outputdir = os.path.join(self.job.resultdir, testname)
417 self.job.pkgmgr.get_package_name.expect_call(
420 self.job.record.expect_call("START", testname, testname,
422 self.job._runtest.expect_call(testname, "", None, (), {}).and_raises(
424 self.job.record.expect_call("ERROR", testname, testname, reason)
425 self.job.record.expect_call("END ERROR", testname, testname)
426 self.job.harness.run_test_complete.expect_call()
430 self.job.run_test(testname)
438 self.job.record.expect_call("ABORT", "sub", "reboot.verify",
440 self.job.record.expect_call("END ABORT", "sub", "reboot",
444 self.job._record_reboot_failure("sub", "reboot.verify", "boot failure",
451 self.god.stub_function(job.partition_lib, "get_partition_list")
459 job.partition_lib.get_partition_list.expect_call(
460 self.job, exclude_swap=False).and_return(part_list)
465 self.job._state.set('client', 'mount_info', mount_info)
466 self.job._state.set('client', 'cpu_count', 8)
477 self.job._check_post_reboot("sub")
487 self.god.stub_function(self.job, "_record_reboot_failure")
488 self.job._record_reboot_failure.expect_call("sub",
494 self.assertRaises(error.JobError, self.job._check_post_reboot, "sub")
505 self.god.stub_function(self.job, "_record_reboot_failure")
506 self.job._record_reboot_failure.expect_call(
512 self.assertRaises(error.JobError, self.job._check_post_reboot, "sub")
524 parsed_args = job.base_client_job._parse_args(t)
533 self.god.stub_function(self.job.pkgmgr, 'get_package_name')
534 self.god.stub_function(self.job, "_runtest")
544 outputdir = os.path.join(self.job.resultdir, testname)
545 self.job.pkgmgr.get_package_name.expect_call(
551 self.job.record.expect_call("START", testname, testname,
553 self.job._runtest.expect_call(testname, "", timeout, (), {})
554 self.job.record.expect_call("GOOD", testname, testname,
556 self.job.record.expect_call("END GOOD", testname, testname)
557 self.job.harness.run_test_complete.expect_call()
561 self.job.run_test(testname, timeout=timeout)