Skip to content

Commit c284241

Browse files
Search in dpctl, not in _sklearn folder
1 parent 74800be commit c284241

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

scripts/gen_coverage.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -114,18 +114,11 @@ def find_objects():
114114
def is_py_ext(fn):
115115
return re.match(regexp1, fn) or re.match(regexp2, fn)
116116

117-
for root, _, files in os.walk("_skbuild"):
117+
for root, _, files in os.walk("dpctl"):
118118
for file in files:
119119
if not file.endswith(".so"):
120120
continue
121-
if os.path.join("libsyclinterface", "tests") in root:
122-
continue
123-
if any(
124-
match in root
125-
for match in [
126-
"libsyclinterface",
127-
]
128-
) or is_py_ext(file):
121+
if is_py_ext(file) or file.find("DPCTLSyclInterface") != -1:
129122
objects.extend(["-object", os.path.join(root, file)])
130123
print("Using objects: ", objects)
131124
return objects

0 commit comments

Comments
 (0)