Skip to content

Commit 6a25407

Browse files
committed
Skip tests, that are known to break on Github Actions
See actions/runner-images#11512 Signed-off-by: Christian Brabandt <[email protected]>
1 parent f767ded commit 6a25407

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

src/testdir/check.vim

+7
Original file line numberDiff line numberDiff line change
@@ -291,4 +291,11 @@ func CheckAllOf(...)
291291
endfor
292292
endfunc
293293

294+
" Check if running under Github Actions
295+
command CheckGithubActions call CheckGithubActions()
296+
func CheckGithubActions()
297+
if expand('$GITHUB_ACTIONS') ==# 'true'
298+
throw 'Skipped: FIXME: this test doesn't work on Github Actions CI'
299+
endif
300+
endfunc
294301
" vim: shiftwidth=2 sts=2 expandtab

src/testdir/test_terminal.vim

+15
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,11 @@ endfunc
932932

933933
func Test_terminal_eof_arg()
934934
call CheckPython(s:python)
935+
if has("win32")
936+
" This tests started to fail on Github Actions Windows
937+
" see: actions/runner-images#11512
938+
CheckGithubActions
939+
endif
935940
let g:test_is_flaky = 1
936941

937942
call setline(1, ['print("hello")'])
@@ -949,6 +954,11 @@ func Test_terminal_eof_arg()
949954
endfunc
950955

951956
func Test_terminal_eof_arg_win32_ctrl_z()
957+
if has("win32")
958+
" This tests started to fail on Github Actions Windows
959+
" see: actions/runner-images#11512
960+
CheckGithubActions
961+
endif
952962
CheckMSWindows
953963
call CheckPython(s:python)
954964
let g:test_is_flaky = 1
@@ -962,6 +972,11 @@ endfunc
962972

963973
func Test_terminal_duplicate_eof_arg()
964974
call CheckPython(s:python)
975+
if has("win32")
976+
" This tests started to fail on Github Actions Windows
977+
" see: actions/runner-images#11512
978+
CheckGithubActions
979+
endif
965980
let g:test_is_flaky = 1
966981

967982
" Check the last specified ++eof arg is used and does not leak memory.

0 commit comments

Comments
 (0)