diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-09 15:09:59 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-09 15:09:59 +0100 |
commit | 65258d36ddfab371c7982343efc9b2533ba39075 (patch) | |
tree | 4c9c85ace4083860a96345235673473b6c9001e7 /src/testdir/runtest.vim | |
parent | ae04a6049b3f0e30a671966ed2dda1979e0b5f20 (diff) |
patch 9.0.0426: failed flaky tests reports only start timev9.0.0426
Problem: Failed flaky tests reports only start time.
Solution: Also report the end time.
Diffstat (limited to 'src/testdir/runtest.vim')
-rw-r--r-- | src/testdir/runtest.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim index 72a8f989f8..68c3dd3eff 100644 --- a/src/testdir/runtest.vim +++ b/src/testdir/runtest.vim @@ -479,7 +479,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] |