mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
tests: flush test headers to ensure stable output with VJOBS>1
This commit is contained in:
parent
23d1c792c0
commit
6a4ba22eae
2 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue