aboutsummaryrefslogtreecommitdiff
path: root/core/testing/reporting.odin
diff options
context:
space:
mode:
authorFeoramund <161657516+Feoramund@users.noreply.github.com>2024-05-29 15:36:22 -0400
committerFeoramund <161657516+Feoramund@users.noreply.github.com>2024-06-02 14:47:07 -0400
commita1c5bebac72d14711c317e393d337143df17ca87 (patch)
treee72f07cec3a23994c32301d93f53470fbcd4483a /core/testing/reporting.odin
parent89d8df28bec7b5aebaac1e38ef642754ef57e1f1 (diff)
Fix ANSI redraw eating last log line
Diffstat (limited to 'core/testing/reporting.odin')
-rw-r--r--core/testing/reporting.odin6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/testing/reporting.odin b/core/testing/reporting.odin
index d06681c2d..fba67d67f 100644
--- a/core/testing/reporting.odin
+++ b/core/testing/reporting.odin
@@ -271,7 +271,11 @@ needs_to_redraw :: proc(report: Report) -> bool {
}
draw_status_bar :: proc(w: io.Writer, threads_string: string, total_done_count, total_test_count: int) {
- if total_done_count != total_test_count {
+ if total_done_count == total_test_count {
+ // All tests are done; print a blank line to maintain the same height
+ // of the progress report.
+ fmt.wprintln(w)
+ } else {
fmt.wprintfln(w,
"%s % 4i/% 4i :: total",
threads_string,