Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,9 @@ impl<'test> TestCx<'test> {
unexpected.len(),
not_found.len()
));
println!("status: {}\ncommand: {}\n", proc_res.status, proc_res.cmdline);
if env::var("COMPILETEST_DEBUG_INFO").is_ok() {
println!("status: {}\ncommand: {}\n", proc_res.status, proc_res.cmdline);
}
if !unexpected.is_empty() {
println!("{}", "--- unexpected errors (from JSON output) ---".green());
for error in &unexpected {
Expand Down Expand Up @@ -2731,6 +2733,9 @@ impl ProcRes {
)
}
}
if env::var("COMPILETEST_DEBUG_INFO").is_err() {
return;
}

println!(
"status: {}\ncommand: {}\n{}\n{}\n",
Expand Down
Loading