Skip to content

Commit 86861f3

Browse files
author
Orion Gonzalez
committed
failing tests aren't that noisy by default
1 parent 8aca4ba commit 86861f3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/tools/compiletest/src/runtest.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,9 @@ impl<'test> TestCx<'test> {
763763
unexpected.len(),
764764
not_found.len()
765765
));
766-
println!("status: {}\ncommand: {}\n", proc_res.status, proc_res.cmdline);
766+
if env::var("COMPILETEST_DEBUG_INFO").is_ok() {
767+
println!("status: {}\ncommand: {}\n", proc_res.status, proc_res.cmdline);
768+
}
767769
if !unexpected.is_empty() {
768770
println!("{}", "--- unexpected errors (from JSON output) ---".green());
769771
for error in &unexpected {
@@ -2696,6 +2698,9 @@ impl ProcRes {
26962698
)
26972699
}
26982700
}
2701+
if env::var("COMPILETEST_DEBUG_INFO").is_err() {
2702+
return;
2703+
}
26992704

27002705
println!(
27012706
"status: {}\ncommand: {}\n{}\n{}\n",

0 commit comments

Comments
 (0)