Silence stdout for test runs. (#1198)

This commit is contained in:
Andrés N. Robalino 2020-01-12 04:14:10 -05:00 committed by GitHub
parent 02d0a4107e
commit 0dcd90cb8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,6 +86,7 @@ macro_rules! nu_error {
);
let mut process = Command::new($crate::fs::executable_path())
.stdout(Stdio::piped())
.stdin(Stdio::piped())
.stderr(Stdio::piped())
.spawn()
@ -98,7 +99,7 @@ macro_rules! nu_error {
let output = process
.wait_with_output()
.expect("couldn't read from stderr");
.expect("couldn't read from stdout/stderr");
let out = String::from_utf8_lossy(&output.stderr);
out.into_owned()