Skip to content

Commit

Permalink
Skip tests, that are known to break on Github Actions
Browse files Browse the repository at this point in the history
See actions/runner-images#11512

Signed-off-by: Christian Brabandt <[email protected]>
  • Loading branch information
chrisbra committed Feb 8, 2025
1 parent fa70b89 commit b08053f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/testdir/check.vim
Original file line number Diff line number Diff line change
Expand Up @@ -291,4 +291,11 @@ func CheckAllOf(...)
endfor
endfunc

" Check if running under Github Actions
command CheckGithubActions call CheckGithubActions()
func CheckGithubActions()
if expand('$GITHUB_ACTIONS') ==# 'true'
throw "Skipped: FIXME: this test doesn't work on Github Actions CI"
endif
endfunc
" vim: shiftwidth=2 sts=2 expandtab
15 changes: 15 additions & 0 deletions src/testdir/test_terminal.vim
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,11 @@ endfunc

func Test_terminal_eof_arg()
call CheckPython(s:python)
if has("win32")
" This tests started to fail on Github Actions Windows
" see: actions/runner-images#11512
CheckGithubActions
endif
let g:test_is_flaky = 1

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

func Test_terminal_eof_arg_win32_ctrl_z()
if has("win32")
" This tests started to fail on Github Actions Windows
" see: actions/runner-images#11512
CheckGithubActions
endif
CheckMSWindows
call CheckPython(s:python)
let g:test_is_flaky = 1
Expand All @@ -962,6 +972,11 @@ endfunc

func Test_terminal_duplicate_eof_arg()
call CheckPython(s:python)
if has("win32")
" This tests started to fail on Github Actions Windows
" see: actions/runner-images#11512
CheckGithubActions
endif
let g:test_is_flaky = 1

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

0 comments on commit b08053f

Please sign in to comment.