From 0dcd90cb8fab98b0f530d703f770cb2d37f23ff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20N=2E=20Robalino?= Date: Sun, 12 Jan 2020 04:14:10 -0500 Subject: [PATCH] Silence stdout for test runs. (#1198) --- crates/nu-test-support/src/macros.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/nu-test-support/src/macros.rs b/crates/nu-test-support/src/macros.rs index 58b56c07b6..3d255bcdf6 100644 --- a/crates/nu-test-support/src/macros.rs +++ b/crates/nu-test-support/src/macros.rs @@ -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()