diff options
Diffstat (limited to 'tests/src')
| -rw-r--r-- | tests/src/tests.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/src/tests.rs b/tests/src/tests.rs index 5e6b7b40..03696eab 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(); } |
