From ad06c1c1c63f6fa5b5158f5e89e90468fd92ebba Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 19 Apr 2023 10:24:57 +0800 Subject: [PATCH] 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. https://github.com/vim/vim/commit/65258d36ddfab371c7982343efc9b2533ba39075 Co-authored-by: Bram Moolenaar --- test/old/testdir/runtest.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/old/testdir/runtest.vim b/test/old/testdir/runtest.vim index bc166024d3..a17f4bfd08 100644 --- a/test/old/testdir/runtest.vim +++ b/test/old/testdir/runtest.vim @@ -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]