MCPcopy Index your code
hub / github.com/apache/tvm / build_test_set

Function build_test_set

ci/scripts/github/github_skipped_tests_comment.py:82–98  ·  view source on GitHub ↗
(directory)

Source from the content-addressed store, hash-verified

80
81
82def build_test_set(directory):
83 directory = Path(directory)
84 subdir_to_skipped = {}
85 subdirs = [
86 item for item in os.listdir(directory) if os.path.isdir(os.path.join(directory, item))
87 ]
88 for subdir in subdirs:
89 subdir_to_skipped[subdir] = set()
90 for root, _, files in os.walk(directory / subdir):
91 for file in files:
92 test_report = ElementTree.parse(Path(root) / file)
93 for testcase in test_report.iter("testcase"):
94 skipped = testcase.find("skipped")
95 if skipped is not None:
96 key = testcase.attrib["classname"] + "#" + testcase.attrib["name"]
97 subdir_to_skipped[subdir].add(key)
98 return subdir_to_skipped
99
100
101def to_node_name(dir_name: str):

Callers 1

Calls 4

parseMethod · 0.80
listdirMethod · 0.45
joinMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…