Home
last modified time | relevance | path

Searched refs:control_file (Results 1 – 25 of 36) sorted by relevance

12

/external/autotest/server/cros/dynamic_suite/
Dtools_unittest.py65 control_file = tools.inject_vars(v, 'sample')
66 self.assertTrue(tools._INJECT_BEGIN in control_file)
67 self.assertTrue(tools._INJECT_END in control_file)
71 control_file = """
81 control_file = tools.remove_injection(control_file)
82 self.assertTrue(control_file.strip().startswith('def init():'))
86 control_file = """
94 control_file = tools.remove_legacy_injection(control_file)
95 self.assertTrue(control_file.strip().startswith('def init():'))
96 control_file = tools.remove_injection(control_file)
[all …]
Dtools.py217 control_file = ''
218 control_file += _INJECT_BEGIN + '\n'
222 control_file += "%s=%s\n" % (key, repr(value))
224 control_file += "%s=%r\n" % (key, value)
227 return control_file + args_dict_str + _INJECT_END + '\n' + control_file_in
/external/autotest/server/
Dstandalone_profiler.py52 control_file = []
54 control_file.append("job.profilers.add(%s)"
60 control_file.append(profiler_sync_call)
63 control_file.append("job.profilers.delete('%s')" % profiler[0])
65 return "\n".join(control_file)
Dserver_job_unittest.py45 _, self.control_file = tempfile.mkstemp()
49 os.remove(self.control_file)
64 self.control_file,
Dfrontend.py643 def create_job(self, control_file, name=' ', argument
648 control_file=control_file, control_type=control_type, **dargs)
757 return 'CONTROL FILE: %s' % self.control_file
/external/autotest/server/samples/
Dprofilertest.srv9 control_file = []
11 control_file.append("job.profilers.add(%s)"
14 control_file.append(("job.run_test('profiler_sync', timeout_sync=%d, "
21 control_file.append("job.profilers.delete('%s')" % profiler[0])
23 params = ["\n".join(control_file), "profile-" + profiler[0], at.host]
/external/autotest/frontend/afe/
Dcontrol_file.py33 control_file = open(os.path.join(AUTOTEST_DIR, test.path))
34 control_contents = control_file.read()
35 control_file.close()
225 control_file = control_file_info_list[test.path]
227 control_file = cfile_getter.get_control_file_contents(
229 raw_control_files.append(control_file)
Drpc_interface.py54 from autotest_lib.frontend.afe import control_file as control_file_lib
884 return dict(control_file='', is_server=False, synch_count=1,
898 def create_job_page_handler(name, priority, control_file, control_type, argument
941 control_file = rpc_utils.encode_ascii(control_file)
942 if not control_file:
956 name=name, control_file=control_file, priority=priority,
960 return create_job(name, priority, control_file, control_type, image=image,
968 control_file, argument
1039 control_file = tools.inject_vars(test_args, control_file)
1046 control_file=control_file,
[all …]
Dfrontend_test_utils.py91 drone_set=None, control_file='control', argument
134 drone_set=drone_set, control_file=control_file,
Drpc_interface_unittest.py92 control_file='foo',
791 control_file='foo',
885 control_file='control file',
1000 job = self._create_job(shard=shard, control_file='foo')
1343 control_file='foo',
1357 control_file='foo',
1372 control_file='foo',
1377 job.control_file = CONTROL_FILE
1387 control_file='foo',
1392 job.control_file = CONTROL_FILE
[all …]
Drpc_utils.py747 control_file=None, argument
807 control_file=control_file,
864 def encode_ascii(control_file): argument
874 return control_file.encode('ascii')
/external/autotest/frontend/afe/doctests/
D003_misc_rpc_features.txt16 >>> print cf_info['control_file']
46 >>> print cf_info['control_file']
72 >>> print cf_info['control_file']
95 >>> from autotest_lib.frontend.afe import test, control_file
103 >>> print control_file.generate_control([FakeTest()], is_server=True) #doctest: +NORMALIZE_WHITESPA…
D001_rpc_test.txt392 >>> print cf_info_pi['control_file'] #doctest: +NORMALIZE_WHITESPACE
402 ... control_file=cf_info_pi['control_file'],
413 >>> data['control_file'] == cf_info_pi['control_file']
437 >>> job == {'control_file': cf_info_pi['control_file'], # the control file we used
553 ... control_file=cf_info_pi['control_file'],
572 ... control_file=cf_info_pi['control_file'],
/external/autotest/server/site_tests/hardware_StorageQual/
Dgenerate_storage_qual_control_files.py307 control_file = TEMPLATE.format( variable
318 suite, label, test, i), control_file)
321 control_file = TEMPLATE.format( variable
332 control_file)
/external/autotest/site_utils/autoupdate/lib/
Dtest_control.py62 control_file = os.path.join(directory,
64 with open(control_file, 'w') as fh:
67 return control_file
/external/autotest/site_utils/
Dtest_runner_utils_unittest.py287 for control_file in self._suite_control_files:
288 job_id = afe.create_job(control_file, hosts=self._hosts)
290 self._jobs_to_tests[job_id] = control_file
303 control_file = self._jobs_to_tests.get(job_id)
304 job_id = afe.create_job(control_file, hosts=self._hosts)
306 self._jobs_to_tests[job_id] = control_file
337 for control_file in suite_control_files:
339 mox.ContainsAttributeValue('control_file', control_file),
/external/autotest/contrib/
Dalways_failing_tests.py78 for control_file in fs_getter.get_control_file_list():
79 with open(control_file, 'rb') as f:
81 hash_to_file[h] = control_file.replace(common.autotest_dir, '')\
92 job_to_hash[job.id] = md5(job.control_file)
/external/autotest/site_utils/presubmit_hooks/
Dcheck_control_files.py243 control_file = re.search(r'.*/control(?:\.\w+)?$', file_path)
244 if control_file:
245 ctrl_file_path = control_file.group(0)
/external/autotest/cli/
Djob.py175 self.show_control_file = options.control_file
439 if not options.control_file and not options.test:
442 if options.control_file and options.test:
445 if options.control_file:
447 control_file_f = open(options.control_file)
454 'control-file: %s' % options.control_file)
/external/autotest/client/bin/
Djob_unittest.py35 _, self.control_file = tempfile.mkstemp()
40 os.remove(self.control_file)
105 self.job.__init__(self.control_file, options)
310 control_file = "blah"
311 self.job.control_set(control_file)
312 self.assertEquals(self.job.control_get(), os.path.abspath(control_file))
/external/autotest/site_utils/lxc/
Dlxc_functional_test.py273 with open(host_control_file, 'w') as control_file:
274 control_file.write(TEST_CONTROL_CONTENT)
Dcontainer.py559 def install_control_file(self, control_file): argument
567 os.path.basename(control_file))
568 self.copy(control_file, dst)
/external/autotest/client/cros/power/
Dpower_utils.py813 control_file = os.path.join(self._path, 'control')
814 if not os.path.exists(control_file):
818 out = utils.read_one_line(control_file)
819 logging.debug('USB: control set to %s for %s', out, control_file)
/external/autotest/venv/skylab_suite/
Dcros_suite.py289 self.control_file = ''
401 self.control_file = suite_common.get_control_file_by_build(
/external/autotest/venv/lucifer/
Djobx.py124 f.write(job.control_file)

12