Lines Matching refs:unit_test_name
27 unit_test_name, unit_test_result = unit_test.strip().split(",")
28 return unit_test_name, unit_test_result
53 def is_test_present_on_file(file_content, unit_test_name): argument
54 return any(unit_test_name in line for line in file_content)
61 def remove_unit_test_if_present(lines, unit_test_name): argument
62 if not is_test_present_on_file(lines, unit_test_name):
64 lines[:] = [line for line in lines if unit_test_name not in line]
67 def add_unit_test_if_not_present(lines, unit_test_name, file_name): argument
69 if "core_getversion" in unit_test_name:
71 elif all(unit_test_name not in line for line in lines):
72 lines.append(unit_test_name + "\n")
76 unit_test_name, unit_test_result = get_unit_test_name_and_results(unit_test)
78 if unit_test_name in line:
85 unit_test_name, _ = get_unit_test_name_and_results(unit_test)
86 if not is_test_present_on_file(fails_txt, unit_test_name):
155 unit_test_name, unit_test_result = get_unit_test_name_and_results(unit_test)
157 if not unit_test_name:
161 remove_unit_test_if_present(fails_txt, unit_test_name)
162 add_unit_test_if_not_present(flakes_txt, unit_test_name, flakes_txt_path)
166 remove_unit_test_if_present(flakes_txt, unit_test_name)
169 remove_unit_test_if_present(fails_txt, unit_test_name)
172 add_unit_test_if_not_present(flakes_txt, unit_test_name, flakes_txt_path)
177 remove_unit_test_if_present(fails_txt, unit_test_name)
178 add_unit_test_if_not_present(flakes_txt, unit_test_name, flakes_txt_path)