vim/ignore-flaky-test-failure.patch
Ondřej Súkup b16ad5a43e Accepting request 1000500 from home:Andreas_Schwab:Factory
- ignore-flaky-test-failure.patch: Ignore failure of flaky tests
- disable-unreliable-tests-arch.patch: Removed

OBS-URL: https://build.opensuse.org/request/show/1000500
OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=742
2022-09-05 07:27:11 +00:00

21 lines
774 B
Diff

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