Home
last modified time | relevance | path

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

12

/external/autotest/server/cros/dynamic_suite/
Dtools_unittest.py71 control_file = tools.inject_vars(v, 'sample')
72 self.assertTrue(tools._INJECT_BEGIN in control_file)
73 self.assertTrue(tools._INJECT_END in control_file)
77 control_file = """
87 control_file = tools.remove_injection(control_file)
88 self.assertTrue(control_file.strip().startswith('def init():'))
92 control_file = """
100 control_file = tools.remove_legacy_injection(control_file)
101 self.assertTrue(control_file.strip().startswith('def init():'))
102 control_file = tools.remove_injection(control_file)
[all …]
Dtools.py221 control_file = ''
222 control_file += _INJECT_BEGIN + '\n'
226 control_file += "%s=%s\n" % (key, repr(value))
228 control_file += "%s=%r\n" % (key, value)
231 return control_file + args_dict_str + _INJECT_END + '\n' + control_file_in
/external/autotest/server/
Dstandalone_profiler.py58 control_file = []
60 control_file.append("job.profilers.add(%s)"
66 control_file.append(profiler_sync_call)
69 control_file.append("job.profilers.delete('%s')" % profiler[0])
71 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.py648 def create_job(self, control_file, name=' ', argument
653 control_file=control_file, control_type=control_type, **dargs)
762 return 'CONTROL FILE: %s' % self.control_file
Dautotest.py459 def run(self, control_file, results_dir='.', host=None, timeout=None, argument
496 self._do_run(control_file, results_dir, host, atrun, timeout,
510 def _do_run(self, control_file, results_dir, host, atrun, timeout, argument
532 tmppath = utils.get(control_file, local_copy=True)
575 if os.path.abspath(tmppath) != os.path.abspath(control_file):
Dserver_job.py442 control_file = f.read()
445 return re.sub('\r', '', control_file)
1086 control_file = self._load_control_file(path)
1087 self.run(control=control_file, control_file_dir=self._USE_TEMP_DIR)
/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')
Dmodels.py1515 control_file = dbmodels.TextField(null=True, blank=True) variable in Job
1599 control_file = options.get('control_file')
1616 control_file=control_file,
/external/autotest/site_utils/
Dtest_runner_utils_unittest.py201 for control_file in self._suite_control_files:
202 job_id = afe.create_job(control_file, hosts=self._hosts)
204 self._jobs_to_tests[job_id] = control_file
217 control_file = self._jobs_to_tests.get(job_id)
218 job_id = afe.create_job(control_file, hosts=self._hosts)
220 self._jobs_to_tests[job_id] = control_file
259 for control_file in suite_control_files:
261 mox.ContainsAttributeValue('control_file', control_file),
/external/autotest/server/site_tests/servo_Verification/
Dservo_Verification.py53 control_file = control_data.text
55 if anchor not in control_file:
59 run_test_str = control_file[control_file.index(anchor) + len(anchor):]
/external/autotest/server/site_tests/hardware_StorageQual/
Dgenerate_storage_qual_control_files.py332 control_file = TEMPLATE.format( variable
343 suite, label, test, i), control_file)
346 control_file = TEMPLATE.format( variable
357 control_file)
/external/autotest/server/site_tests/hardware_StorageQualV2/
Dgenerate_control_files.py83 control_file = template.format( variable
93 _write_control_file(control_file_name, control_file)
/external/autotest/site_utils/presubmit_hooks/
Dcheck_control_files.py270 control_file = re.search(r'.*/control(?:\..+)?$', file_path)
271 if control_file:
272 ctrl_file_path = control_file.group(0)
/external/autotest/cli/
Djob.py177 self.show_control_file = options.control_file
441 if not options.control_file and not options.test:
444 if options.control_file and options.test:
447 if options.control_file:
449 control_file_f = open(options.control_file)
456 'control-file: %s' % options.control_file)
/external/autotest/client/bin/
Djob_unittest.py37 _, self.control_file = tempfile.mkstemp()
42 os.remove(self.control_file)
107 self.job.__init__(self.control_file, options)
312 control_file = "blah"
313 self.job.control_set(control_file)
314 self.assertEquals(self.job.control_get(), os.path.abspath(control_file))
/external/autotest/site_utils/lxc/
Dlxc_functional_test.py274 with open(host_control_file, 'w') as control_file:
275 control_file.write(TEST_CONTROL_CONTENT)
Dcontainer.py551 def install_control_file(self, control_file): argument
559 os.path.basename(control_file))
560 self.copy(control_file, dst)
/external/autotest/client/cros/power/
Dpower_utils.py822 control_file = os.path.join(self._path, 'control')
823 if not os.path.exists(control_file):
827 out = utils.read_one_line(control_file)
828 logging.debug('USB: control set to %s for %s', out, control_file)
/external/autotest/tko/
Dparse.py292 for control_file in _HARDCODED_CONTROL_FILE_NAMES:
293 control = os.path.join(path, control_file)

12