• Home
  • Raw
  • Download

Lines Matching refs:f

39 ADVISORY = f"Generated by `{ME}`. Do not edit manually."
53 return reindent(f"""\
340 with open(build_file, "r") as f:
341 lines = f.readlines()
423 logging.debug(f"Removing `{bp_file}`.")
439 with open(metadata_file, "r") as f:
440 metadata = json.load(f)
458 test_suites = f"""\
477 with open(bp_file, "w") as f:
478 logging.debug(f"Writing `{bp_file}`.")
479 f.write(textwrap.dedent(f"""\
563 with open(test_mapping_file, "w") as f:
564 logging.debug(f"Writing `{test_mapping_file}`.")
565 f.write(f"// {ADVISORY}\n")
566 f.write(test_mapping_contents)
567 f.write("\n")
586 return f"{self.shard_num:02}"
598 advisory_header = root.createComment(f" {ADVISORY} ")
607 f"Run mts-art-shard-{self.shard_id()} from a preexisting MTS installation.")
625 with open(test_plan_file, "wb") as f:
626 logging.debug(f"Writing `{test_plan_file}`.")
627 f.write(xml_str)
633 advisory_header = root.createComment(f" {ADVISORY} ")
642 f"List of ART MTS tests that do not need root access (shard {self.shard_id()})"
657 xml_comment = root.createComment(f" {c} ")
668 option.setAttribute("value", f"{test}:enable:true")
672 f"Enable MainlineTestModuleController for {self.description}."]
675 xml_comment = root.createComment(f" {c} ")
683 with open(test_list_file, "wb") as f:
684 logging.debug(f"Writing `{test_list_file}`.")
685 f.write(xml_str)
691 advisory_header = root.createComment(f" {ADVISORY} ")
703 include.setAttribute("name", f"mts-art-tests-list-user-shard-{s:02}")
707 xml_comment = root.createComment(f" Excluded flaky tests (b/209958457). ")
722 with open(mts_art_tests_list_user_file, "wb") as f:
723 logging.debug(f"Writing `{mts_art_tests_list_user_file}`.")
724 f.write(xml_str)
738 logging.debug(f"Removing `{shard_path}`.")
814 print(f"Generated Blueprint files for {len(buildable_tests)} ART run-tests out of"
815 f" {len(run_tests)} ({buildable_tests_percentage}%).")
833 print(f"Generated TEST_MAPPING entries for {len(expected_succeeding_tests)} ART run-tests out"
834 f" of {len(run_tests)} ({expected_succeeding_tests_percentage}%):")
843 f" {num_tests:3d} {test_kind} ({tests_percentage}%) in `{test_group_name}` test group.")
850 print(f"Generated ART MTS entries for {len(expected_succeeding_tests)} ART run-tests out"
851 f" of {len(run_tests)} ({expected_succeeding_tests_percentage}%).")