Show output

This commit is contained in:
mo8it 2026-02-26 16:33:55 +01:00
parent e91647b023
commit 01a7d5be40

View File

@ -62,11 +62,7 @@ impl<'a> Cmd<'a> {
cmd.args(self.args).stdin(Stdio::null());
let status = match self.output {
None => cmd
.stdout(Stdio::null())
.stderr(Stdio::null())
.status()
.unwrap(),
None => cmd.status().unwrap(),
Some(FullStdout(stdout)) => {
let output = cmd.stderr(Stdio::null()).output().unwrap();
assert_eq!(from_utf8(&output.stdout).unwrap(), stdout);