MCPcopy Create free account
hub / github.com/apache/tvm / write_xml_file

Function write_xml_file

tests/python/ci/test_ci.py:272–277  ·  view source on GitHub ↗
(root_dir, xml_file, xml_content)

Source from the content-addressed store, hash-verified

270 """
271
272 def write_xml_file(root_dir, xml_file, xml_content):
273 shutil.rmtree(root_dir, ignore_errors=True)
274 file = root_dir / xml_file
275 file.parent.mkdir(parents=True)
276 with open(file, "w") as f:
277 f.write(textwrap.dedent(xml_content))
278
279 git = TempGit(tmpdir_factory.mktemp("tmp_git_dir"))
280 pr_test_report_dir = Path(git.cwd) / "pr-reports"

Callers 1

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…