ci(lesavka): classify cargo unit tests as unit telemetry
This commit is contained in:
parent
0210d5f54a
commit
3ca0efc641
@ -135,6 +135,10 @@ if cargo_toml_path.exists():
|
|||||||
category_by_test_name[current_name] = category_for_path(current_path)
|
category_by_test_name[current_name] = category_for_path(current_path)
|
||||||
|
|
||||||
def category_for_target(target: str) -> str:
|
def category_for_target(target: str) -> str:
|
||||||
|
for prefix in ('unittests ', 'doctests '):
|
||||||
|
if target.startswith(prefix):
|
||||||
|
target = target[len(prefix):]
|
||||||
|
break
|
||||||
if target in category_by_path:
|
if target in category_by_path:
|
||||||
return category_by_path[target]
|
return category_by_path[target]
|
||||||
target_path = pathlib.PurePosixPath(target)
|
target_path = pathlib.PurePosixPath(target)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user