Lines Matching refs:file_name
124 def systematic_dependencies(file_name, function_name, arguments): argument
146 if os.path.basename(file_name) == 'test_suite_psa_crypto_persistent_key.data' and \
156 def updated_dependencies(file_name, function_name, arguments, dependencies): argument
165 automatic = systematic_dependencies(file_name, function_name, arguments)
171 def keep_manual_dependencies(file_name, function_name, arguments): argument
186 def process_data_stanza(stanza, file_name, test_case_number): argument
202 .format(test_case_number, file_name))
205 .format(test_case_number, file_name))
208 if keep_manual_dependencies(file_name, function_name, arguments):
227 .format(test_case_number, file_name))
228 new_dependencies = updated_dependencies(file_name, function_name, arguments,
240 def process_data_file(file_name, old_content): argument
246 new_stanzas = [process_data_stanza(stanza, file_name, n)
250 def update_file(file_name, old_content, new_content): argument
258 backup = file_name + '.bak'
259 tmp = file_name + '.tmp'
262 os.replace(file_name, backup)
263 os.replace(tmp, file_name)
265 def process_file(file_name): argument
271 old_content = open(file_name, encoding='utf-8').read()
272 if file_name.endswith('.data'):
273 new_content = process_data_file(file_name, old_content)
276 .format(file_name))
277 update_file(file_name, old_content, new_content)
280 for file_name in args:
281 process_file(file_name)