avoid double-space in test logging

This commit is contained in:
Ralf Jung 2022-08-02 18:27:06 -04:00
parent 7865255b86
commit 87b9075920

View File

@ -194,9 +194,9 @@ enum TestResult {
run_test(&path, &config, &target, &revision, &comments); run_test(&path, &config, &target, &revision, &comments);
// Using a single `eprintln!` to prevent messages from threads from getting intermingled. // Using a single `eprintln!` to prevent messages from threads from getting intermingled.
let mut msg = format!("{} ", path.display()); let mut msg = format!("{}", path.display());
if !revision.is_empty() { if !revision.is_empty() {
write!(msg, "(revision `{revision}`) ").unwrap(); write!(msg, " (revision `{revision}`) ").unwrap();
} }
if errors.is_empty() { if errors.is_empty() {
finished_files_sender.send((msg, TestResult::Ok))?; finished_files_sender.send((msg, TestResult::Ok))?;