vim-patch:9.0.0426: failed flaky tests reports only start time

Problem:    Failed flaky tests reports only start time.
Solution:   Also report the end time.

65258d36dd

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq 2023-04-19 10:24:57 +08:00
parent c4c5bcd2b2
commit ad06c1c1c6

View File

@ -449,7 +449,8 @@ for g:testfunc in sort(s:tests)
call add(s:messages, 'Found errors in ' .. g:testfunc .. ':')
call extend(s:messages, v:errors)
call add(total_errors, starttime .. ' Run ' .. g:run_nr .. ':')
let endtime = strftime("%H:%M:%S")
call add(total_errors, $'Run {g:run_nr}, {starttime} - {endtime}:')
call extend(total_errors, v:errors)
if g:run_nr >= 5 || prev_error == v:errors[0]