vim/ignore-flaky-test-failure.patch

21 lines
774 B
Diff
Raw Normal View History

Index: vim-9.0.0313/src/testdir/runtest.vim
===================================================================
--- vim-9.0.0313.orig/src/testdir/runtest.vim
+++ vim-9.0.0313/src/testdir/runtest.vim
@@ -482,8 +482,13 @@ for g:testfunc in sort(s:tests)
call extend(total_errors, v:errors)
if g:run_nr >= 5 || prev_error == v:errors[0]
- call add(total_errors, 'Flaky test failed too often, giving up')
- let v:errors = total_errors
+ if $TEST_IGNORE_FLAKY != ''
+ call add(s:messages, 'Flaky test failed too often, ignoring')
+ let v:errors = []
+ else
+ call add(total_errors, 'Flaky test failed too often, giving up')
+ let v:errors = total_errors
+ endif
break
endif