forked from extern/nushell
Silence stdout for test runs. (#1198)
This commit is contained in:
parent
02d0a4107e
commit
0dcd90cb8f
@ -86,6 +86,7 @@ macro_rules! nu_error {
|
|||||||
);
|
);
|
||||||
|
|
||||||
let mut process = Command::new($crate::fs::executable_path())
|
let mut process = Command::new($crate::fs::executable_path())
|
||||||
|
.stdout(Stdio::piped())
|
||||||
.stdin(Stdio::piped())
|
.stdin(Stdio::piped())
|
||||||
.stderr(Stdio::piped())
|
.stderr(Stdio::piped())
|
||||||
.spawn()
|
.spawn()
|
||||||
@ -98,7 +99,7 @@ macro_rules! nu_error {
|
|||||||
|
|
||||||
let output = process
|
let output = process
|
||||||
.wait_with_output()
|
.wait_with_output()
|
||||||
.expect("couldn't read from stderr");
|
.expect("couldn't read from stdout/stderr");
|
||||||
|
|
||||||
let out = String::from_utf8_lossy(&output.stderr);
|
let out = String::from_utf8_lossy(&output.stderr);
|
||||||
out.into_owned()
|
out.into_owned()
|
||||||
|
Loading…
Reference in New Issue
Block a user