report,ui: name the tee log by flow kind

BuildTarget::source_only carried two states for what is a three-way
distinction now that pkh test exists: replace it with a TargetKind
(Source/Binary/Test) and derive the tee log prefix (build-/deb-/test-)
from it, so test runs get their own log family instead of borrowing
the deb one.
This commit is contained in:
2026-09-27 20:41:40 +02:00
parent 067e0614e6
commit d30b179430
5 changed files with 23 additions and 8 deletions
+5 -1
View File
@@ -272,7 +272,11 @@ impl crate::report::BuildView for DebUi {
self.shared.top.set_prefix(target.display.clone());
}
if target.tee_log {
let kind = if target.source_only { "build" } else { "deb" };
let kind = match target.kind {
crate::report::TargetKind::Source => "build",
crate::report::TargetKind::Binary => "deb",
crate::report::TargetKind::Test => "test",
};
self.open_log(
kind,
target.package,