diff --git a/tests/src/tests.rs b/tests/src/tests.rs index 5e6b7b401..03696eab6 100644 --- a/tests/src/tests.rs +++ b/tests/src/tests.rs @@ -498,7 +498,9 @@ fn test( stdout.write_all(name.to_string_lossy().as_bytes()).unwrap(); if ok { writeln!(stdout, " ✔").unwrap(); - if stdout.is_terminal() { + // Don't clear the line when the reference image was updated, to + // show in the output which test had its image updated. + if !updated && stdout.is_terminal() { // ANSI escape codes: cursor moves up and clears the line. write!(stdout, "\x1b[1A\x1b[2K").unwrap(); }