diff --git a/cmd/tools/modules/testing/common.v b/cmd/tools/modules/testing/common.v index fe68567fc5..db81b5eb36 100644 --- a/cmd/tools/modules/testing/common.v +++ b/cmd/tools/modules/testing/common.v @@ -561,6 +561,7 @@ pub fn eheader(msg string) { pub fn header(msg string) { println(term.header_left(msg, '-')) + flush_stdout() } pub fn setup_new_vtmp_folder() string { diff --git a/cmd/tools/vtest-all.v b/cmd/tools/vtest-all.v index 56765e1f84..692acd6921 100644 --- a/cmd/tools/vtest-all.v +++ b/cmd/tools/vtest-all.v @@ -26,6 +26,7 @@ fn main() { spent := sw.elapsed().milliseconds() oks := commands.filter(it.ecode == 0) fails := commands.filter(it.ecode != 0) + flush_stdout() println('') println(term.header_left(term_highlight('Summary of `v test-all`:'), '-')) println(term_highlight('Total runtime: $spent ms')) @@ -37,6 +38,7 @@ fn main() { msg := if fcmd.errmsg != '' { fcmd.errmsg } else { fcmd.line } println(term.failed('> Failed:') + ' $msg') } + flush_stdout() if fails.len > 0 { exit(1) }