mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-25 23:10:30 +00:00
Remove --show-output
for tests and use --format pretty
This commit is contained in:
parent
b01fddef8b
commit
631f44331e
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ pub trait RunnableExercise {
|
||||||
let output_is_some = output.is_some();
|
let output_is_some = output.is_some();
|
||||||
let mut test_cmd = cmd_runner.cargo("test", bin_name, output.as_deref_mut());
|
let mut test_cmd = cmd_runner.cargo("test", bin_name, output.as_deref_mut());
|
||||||
if output_is_some {
|
if output_is_some {
|
||||||
test_cmd.args(["--", "--color", "always", "--show-output"]);
|
test_cmd.args(["--", "--color", "always", "--format", "pretty"]);
|
||||||
}
|
}
|
||||||
let test_success = test_cmd.run("cargo test …")?;
|
let test_success = test_cmd.run("cargo test …")?;
|
||||||
if !test_success {
|
if !test_success {
|
||||||
|
|
Loading…
Reference in a new issue