From b08053faac35f6bec0ad04462f4484e6d95c763e Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Sat, 8 Feb 2025 19:28:34 +0100 Subject: [PATCH] Skip tests, that are known to break on Github Actions See https://github.com/actions/runner-images/issues/11512 Signed-off-by: Christian Brabandt --- src/testdir/check.vim | 7 +++++++ src/testdir/test_terminal.vim | 15 +++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/src/testdir/check.vim b/src/testdir/check.vim index e67d39ad22df6a..a60dd908506bdf 100644 --- a/src/testdir/check.vim +++ b/src/testdir/check.vim @@ -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 diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim index b53f0cd537d90e..ee2190e34013f6 100644 --- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -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")']) @@ -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 @@ -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.