mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-03-31 11:39:19 +00:00
Show output
This commit is contained in:
parent
e91647b023
commit
01a7d5be40
@ -62,11 +62,7 @@ impl<'a> Cmd<'a> {
|
|||||||
cmd.args(self.args).stdin(Stdio::null());
|
cmd.args(self.args).stdin(Stdio::null());
|
||||||
|
|
||||||
let status = match self.output {
|
let status = match self.output {
|
||||||
None => cmd
|
None => cmd.status().unwrap(),
|
||||||
.stdout(Stdio::null())
|
|
||||||
.stderr(Stdio::null())
|
|
||||||
.status()
|
|
||||||
.unwrap(),
|
|
||||||
Some(FullStdout(stdout)) => {
|
Some(FullStdout(stdout)) => {
|
||||||
let output = cmd.stderr(Stdio::null()).output().unwrap();
|
let output = cmd.stderr(Stdio::null()).output().unwrap();
|
||||||
assert_eq!(from_utf8(&output.stdout).unwrap(), stdout);
|
assert_eq!(from_utf8(&output.stdout).unwrap(), stdout);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user