exec: move line capture out of context

The line sink, stream and pump are not context concerns: the host runner
and every sandbox backend feed the same cleaned lines to the terminal.
Move them and the fd sanitizer to exec, and have LocalDriver delegate to
the shared host runner.

Add a run_captured test against sh to pin the two-stream contract before
the sandbox backends move.
This commit is contained in:
vhaudiquet committed 2026-11-24 18:35:17 +01:00
1 parent bf88ce4f4d
commit 48306f3719
18 files changed
+326 -271

No files matched your search

+2 -1
View File
@@ -1,7 +1,8 @@
/// Local binary package building
/// Directly calling 'debian/rules' in current context
use crate::context::{Context, ContextCommand, LineSink};
use crate::context::{Context, ContextCommand};
use crate::deb::{BuildProfiler, Phase, enter_phase, find_dsc_file};
use crate::exec::LineSink;
use crate::logfmt::QuiltClassifier;
use crate::report::BuildView;
use log::warn;