From 3ca0efc641ecb372e4cfe953cbb468b927b3b935 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Sun, 17 May 2026 15:36:57 -0300 Subject: [PATCH] ci(lesavka): classify cargo unit tests as unit telemetry --- scripts/ci/test_gate.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/ci/test_gate.sh b/scripts/ci/test_gate.sh index d6caf16..50dd94b 100755 --- a/scripts/ci/test_gate.sh +++ b/scripts/ci/test_gate.sh @@ -135,6 +135,10 @@ if cargo_toml_path.exists(): category_by_test_name[current_name] = category_for_path(current_path) 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: return category_by_path[target] target_path = pathlib.PurePosixPath(target)