comparison src/testdir/runtest.vim @ 30180:b01eaf122e5a v9.0.0426

patch 9.0.0426: failed flaky tests reports only start time Commit: https://github.com/vim/vim/commit/65258d36ddfab371c7982343efc9b2533ba39075 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 9 15:09:59 2022 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Fri, 09 Sep 2022 16:15:03 +0200
parents cb21745cbbab
children 029c59bf78f1
comparison
equal deleted inserted replaced
30179:ef53b84f019c 30180:b01eaf122e5a
477 \ && g:test_is_flaky 477 \ && g:test_is_flaky
478 while 1 478 while 1
479 call add(s:messages, 'Found errors in ' .. g:testfunc .. ':') 479 call add(s:messages, 'Found errors in ' .. g:testfunc .. ':')
480 call extend(s:messages, v:errors) 480 call extend(s:messages, v:errors)
481 481
482 call add(total_errors, starttime .. ' Run ' .. g:run_nr .. ':') 482 let endtime = strftime("%H:%M:%S")
483 call add(total_errors, $'Run {g:run_nr}, {starttime} - {endtime}:')
483 call extend(total_errors, v:errors) 484 call extend(total_errors, v:errors)
484 485
485 if g:run_nr >= 5 || prev_error == v:errors[0] 486 if g:run_nr >= 5 || prev_error == v:errors[0]
486 call add(total_errors, 'Flaky test failed too often, giving up') 487 call add(total_errors, 'Flaky test failed too often, giving up')
487 let v:errors = total_errors 488 let v:errors = total_errors