diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-10-17 17:16:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-17 17:16:31 +0200 |
commit | 5046b4b4adb154bbdb50a5e96e29f777b5f807ac (patch) | |
tree | 113ec908fdb52141f5f8adf272f8019715206b56 /test/functional | |
parent | b9632e58e3efa1635acac56cf136595c0b8bcc42 (diff) | |
download | rneovim-5046b4b4adb154bbdb50a5e96e29f777b5f807ac.tar.gz rneovim-5046b4b4adb154bbdb50a5e96e29f777b5f807ac.tar.bz2 rneovim-5046b4b4adb154bbdb50a5e96e29f777b5f807ac.zip |
ci: add cirrus to isCI function to skip tests (#20526)
The environment variable CIRRUS_CI is manually passed to RunTests.cmake
as it doesn't get passed when using cmake script mode.
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/api/server_notifications_spec.lua | 4 | ||||
-rw-r--r-- | test/functional/core/fileio_spec.lua | 10 | ||||
-rw-r--r-- | test/functional/ex_cmds/write_spec.lua | 10 | ||||
-rw-r--r-- | test/functional/plugin/man_spec.lua | 4 | ||||
-rw-r--r-- | test/functional/terminal/ex_terminal_spec.lua | 6 |
5 files changed, 17 insertions, 17 deletions
diff --git a/test/functional/api/server_notifications_spec.lua b/test/functional/api/server_notifications_spec.lua index 1c554b05a3..1c00f001ff 100644 --- a/test/functional/api/server_notifications_spec.lua +++ b/test/functional/api/server_notifications_spec.lua @@ -7,7 +7,6 @@ local exec_lua = helpers.exec_lua local retry = helpers.retry local isCI = helpers.isCI local assert_alive = helpers.assert_alive -local uname = helpers.uname describe('notify', function() local channel @@ -79,9 +78,6 @@ describe('notify', function() end) it('cancels stale events on channel close', function() - if uname() == 'freebsd' then - pending('Failing FreeBSD test') - end if isCI() then pending('hangs on CI #14083 #15251') return diff --git a/test/functional/core/fileio_spec.lua b/test/functional/core/fileio_spec.lua index d1ff5b8036..07774866a8 100644 --- a/test/functional/core/fileio_spec.lua +++ b/test/functional/core/fileio_spec.lua @@ -25,7 +25,7 @@ local expect_exit = helpers.expect_exit local write_file = helpers.write_file local Screen = require('test.functional.ui.screen') local feed_command = helpers.feed_command -local uname = helpers.uname +local isCI = helpers.isCI describe('fileio', function() before_each(function() @@ -87,8 +87,8 @@ describe('fileio', function() end) it('backup #9709', function() - if uname() == 'freebsd' then - pending('Failing FreeBSD test') + if isCI('cirrus') then + pending('FIXME: cirrus') end clear({ args={ '-i', 'Xtest_startup_shada', '--cmd', 'set directory=Xtest_startup_swapdir' } }) @@ -109,8 +109,8 @@ describe('fileio', function() end) it('backup with full path #11214', function() - if uname() == 'freebsd' then - pending('Failing FreeBSD test') + if isCI('cirrus') then + pending('FIXME: cirrus') end clear() mkdir('Xtest_backupdir') diff --git a/test/functional/ex_cmds/write_spec.lua b/test/functional/ex_cmds/write_spec.lua index 14035a4341..4045d13153 100644 --- a/test/functional/ex_cmds/write_spec.lua +++ b/test/functional/ex_cmds/write_spec.lua @@ -9,7 +9,7 @@ local feed_command = helpers.feed_command local funcs = helpers.funcs local meths = helpers.meths local iswin = helpers.iswin -local uname = helpers.uname +local isCI = helpers.isCI local fname = 'Xtest-functional-ex_cmds-write' local fname_bak = fname .. '~' @@ -53,8 +53,8 @@ describe(':write', function() end) it('&backupcopy=no replaces symlink with new file', function() - if uname() == 'freebsd' then - pending('Failing FreeBSD test') + if isCI('cirrus') then + pending('FIXME: cirrus') end command('set backupcopy=no') write_file('test_bkc_file.txt', 'content0') @@ -95,8 +95,8 @@ describe(':write', function() end) it('errors out correctly', function() - if uname() == 'freebsd' then - pending('Failing FreeBSD test') + if isCI('cirrus') then + pending('FIXME: cirrus') end command('let $HOME=""') eq(funcs.fnamemodify('.', ':p:h'), funcs.fnamemodify('.', ':p:h:~')) diff --git a/test/functional/plugin/man_spec.lua b/test/functional/plugin/man_spec.lua index 203424c855..ebf131fd4a 100644 --- a/test/functional/plugin/man_spec.lua +++ b/test/functional/plugin/man_spec.lua @@ -8,6 +8,7 @@ local nvim_prog = helpers.nvim_prog local matches = helpers.matches local write_file = helpers.write_file local tmpname = helpers.tmpname +local isCI = helpers.isCI clear() if funcs.executable('man') == 0 then @@ -160,6 +161,9 @@ describe(':Man', function() end) it('reports non-existent man pages for absolute paths', function() + if isCI('cirrus') then + pending('FIXME: cirrus') + end local actual_file = tmpname() -- actual_file must be an absolute path to an existent file for us to test against it matches('^/.+', actual_file) diff --git a/test/functional/terminal/ex_terminal_spec.lua b/test/functional/terminal/ex_terminal_spec.lua index 36f9f90143..a423bc9a5a 100644 --- a/test/functional/terminal/ex_terminal_spec.lua +++ b/test/functional/terminal/ex_terminal_spec.lua @@ -10,7 +10,7 @@ local retry = helpers.retry local ok = helpers.ok local iswin = helpers.iswin local command = helpers.command -local uname = helpers.uname +local isCI = helpers.isCI describe(':terminal', function() local screen @@ -46,8 +46,8 @@ describe(':terminal', function() end) it("reads output buffer on terminal reporting #4151", function() - if uname() == 'freebsd' then - pending('Failing FreeBSD test') + if isCI('cirrus') then + pending('FIXME: cirrus') end if helpers.pending_win32(pending) then return end if iswin() then |