Lines Matching refs:job
108 public_attributes = set(attr for attr in dir(self.job)
110 and not callable(getattr(self.job, attr)))
128 self.assertNotEqual(getattr(self.job, attribute, None), None,
143 auto, client, server = self.job._find_base_directories()
148 auto, client, server = self.job._find_base_directories()
154 job = base_job.base_job.__new__(base_job.base_job)
155 job._job_directory = stub_job_directory
156 job._autodir = stub_job_directory(autodir)
158 job._clientdir = stub_job_directory(
160 job._serverdir = stub_job_directory(
163 job._clientdir = stub_job_directory(job.autodir)
164 job._serverdir = None
165 return job
200 self.job = base_job.base_job.__new__(base_job.base_job)
201 self.job._find_base_directories = lambda: (clientdir, clientdir, None)
202 self.job._find_resultdir = lambda *_: self.resultdir
203 self.job.__init__()
211 self.assertRaises(IndexError, self.job.pop_execution_context)
217 self.job.push_execution_context('sub1')
218 self.assertEqual(self.job.resultdir, sub1)
223 self.job.push_execution_context('sub2')
224 self.assertEqual(self.job.resultdir, sub2)
231 self.job.push_execution_context(otherresults)
232 self.assertEqual(self.job.resultdir, otherresults)
239 self.job.push_execution_context('sub3')
240 self.assertEqual(self.job.resultdir, sub3)
241 self.job.pop_execution_context()
242 self.assertEqual(self.job.resultdir, self.resultdir)
248 self.job.push_execution_context('sub4')
249 self.assertEqual(self.job.resultdir, sub4)
250 self.job.push_execution_context('subsub')
251 self.assertEqual(self.job.resultdir, subsub)
252 self.job.pop_execution_context()
253 self.assertEqual(self.job.resultdir, sub4)
254 self.job.pop_execution_context()
255 self.assertEqual(self.job.resultdir, self.resultdir)
831 self.job = job_stub()
833 self.job.stateobj = self.state
839 self.job.testprop1 = 'testvalue'
840 self.assertEqual('testvalue', self.job.testprop1)
846 self.assertEqual('abc123', self.job.testprop2)
854 self.job.testprop3 = 500
855 self.job.testprop4 = '1000'
856 self.assertEqual(500, self.job.testprop3)
857 self.assertEqual('1000', self.job.testprop4)
863 self.job.auxstateobj = base_job.job_state()
866 self.job.auxtestprop5 = 700
867 self.assertEqual(55, self.job.testprop5)
868 self.assertEqual(700, self.job.auxtestprop5)
874 job1 = self.job
889 self.assertEqual('default1', self.job.ns1)
890 self.assertEqual('default2', self.job.ns2)
891 self.job.ns1 = 'notdefault'
892 self.job.ns2 = 'alsonotdefault'
893 self.assertEqual('notdefault', self.job.ns1)
894 self.assertEqual('alsonotdefault', self.job.ns2)
1083 self.job = stub_job() # need to hold a reference to the job
1092 self.logger = base_job.status_logger(self.job, self.indenter)
1157 self.logger = base_job.status_logger(self.job, self.indenter,
1175 self.logger = base_job.status_logger(self.job, self.indenter,
1249 self.logger = base_job.status_logger(self.job, self.indenter,
1270 self.job = stub_job()
1275 self.job._build_tagged_test_name('testname', {}))
1277 self.job._build_tagged_test_name('othername', {}))
1283 self.job._build_tagged_test_name('test1', {'tag': 'mytag'}))
1287 self.job.use_sequence_number = True
1290 self.job._build_tagged_test_name('test2', {}))
1293 self.job._build_tagged_test_name('test2', {}))
1296 self.job._build_tagged_test_name('test3', {}))
1300 self.job.automatic_test_tag = 'autotag'
1303 self.job._build_tagged_test_name('test4', {}))
1307 self.job.automatic_test_tag = 'autotag'
1310 self.job._build_tagged_test_name('test5', {}))
1311 self.job.automatic_test_tag = None
1314 self.job._build_tagged_test_name('test5', {}))
1318 self.job.automatic_test_tag = 'autotag'
1321 self.job._build_tagged_test_name('test6', {}))
1322 self.job.automatic_test_tag = ''
1325 self.job._build_tagged_test_name('test6', {}))
1331 self.job._build_tagged_test_name('test7',
1336 self.job.use_sequence_number = True
1337 self.job.automatic_test_tag = 'auto'
1341 actual = self.job._build_tagged_test_name(
1349 self.job._build_tagged_test_name('test9',
1355 self.job.use_sequence_number = True
1356 self.job.automatic_test_tag = 'auto'
1360 actual = self.job._build_tagged_test_name(
1379 self.job = stub_job()
1399 self.assertRaises(error.TestError, self.job._make_test_outputdir,
1407 self.assertRaises(error.TestError, self.job._make_test_outputdir,
1414 self.job._make_test_outputdir('subdir3')