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:
1 parent
bf88ce4f4d
commit
48306f3719
18 files changed
+326
-271
No files matched your search
+2
-2
@@ -18,11 +18,11 @@ use std::path::{Path, PathBuf};
|
||||
use std::process::{Command, Stdio};
|
||||
use std::sync::Arc;
|
||||
|
||||
use crate::context::capture::pump;
|
||||
use crate::context::{LineSink, Stream};
|
||||
use crate::debian::{
|
||||
ChecksumEntry, ControlInfo, FileChecksums, FilesEntry, FilesList, parse_paragraphs,
|
||||
};
|
||||
use crate::exec::pump;
|
||||
use crate::exec::{LineSink, Stream};
|
||||
use crate::logfmt::{DpkgSourceClassifier, GenericClassifier};
|
||||
use crate::report::{BuildTarget, BuildView, Prompter};
|
||||
|
||||
|
||||
Reference in new issue
Block a user