test: use isCI to simplify CI detection (#21134)

This commit is contained in:
dundargoc 2022-11-20 11:26:21 +01:00 committed by GitHub
parent 6e8ed5abaa
commit cb27c09930
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,7 @@ local ok = helpers.ok
local read_file = helpers.read_file local read_file = helpers.read_file
local funcs = helpers.funcs local funcs = helpers.funcs
local meths = helpers.meths local meths = helpers.meths
local isCI = helpers.isCI
if helpers.skip(helpers.iswin()) then return end if helpers.skip(helpers.iswin()) then return end
@ -821,9 +822,8 @@ describe('TUI', function()
end) end)
it('paste: terminal mode', function() it('paste: terminal mode', function()
if os.getenv('GITHUB_ACTIONS') ~= nil then if isCI('github') then
pending("tty-test complains about not owning the terminal -- actions/runner#241") pending("tty-test complains about not owning the terminal -- actions/runner#241")
return
end end
child_exec_lua('vim.o.statusline="^^^^^^^"') child_exec_lua('vim.o.statusline="^^^^^^^"')
child_exec_lua('vim.cmd.terminal(...)', testprg('tty-test')) child_exec_lua('vim.cmd.terminal(...)', testprg('tty-test'))
@ -1329,9 +1329,8 @@ describe('TUI', function()
end) end)
it('forwards :term palette colors with termguicolors', function() it('forwards :term palette colors with termguicolors', function()
if os.getenv('GITHUB_ACTIONS') ~= nil then if isCI('github') then
pending("tty-test complains about not owning the terminal -- actions/runner#241") pending("tty-test complains about not owning the terminal -- actions/runner#241")
return
end end
screen:set_rgb_cterm(true) screen:set_rgb_cterm(true)
screen:set_default_attr_ids({ screen:set_default_attr_ids({