aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-11-20 11:26:21 +0100
committerGitHub <noreply@github.com>2022-11-20 18:26:21 +0800
commitcb27c09930f576dc859aa6e4b80fb44119b9f95f (patch)
tree78de46b6d50679e4d079880340085312e0eca380
parent6e8ed5abaa9c33d1d78ab7ff5b07dd5bac623a1d (diff)
downloadrneovim-cb27c09930f576dc859aa6e4b80fb44119b9f95f.tar.gz
rneovim-cb27c09930f576dc859aa6e4b80fb44119b9f95f.tar.bz2
rneovim-cb27c09930f576dc859aa6e4b80fb44119b9f95f.zip
test: use isCI to simplify CI detection (#21134)
-rw-r--r--test/functional/terminal/tui_spec.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua
index 4cfdd90187..20c677c46c 100644
--- a/test/functional/terminal/tui_spec.lua
+++ b/test/functional/terminal/tui_spec.lua
@@ -22,6 +22,7 @@ local ok = helpers.ok
local read_file = helpers.read_file
local funcs = helpers.funcs
local meths = helpers.meths
+local isCI = helpers.isCI
if helpers.skip(helpers.iswin()) then return end
@@ -821,9 +822,8 @@ describe('TUI', function()
end)
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")
- return
end
child_exec_lua('vim.o.statusline="^^^^^^^"')
child_exec_lua('vim.cmd.terminal(...)', testprg('tty-test'))
@@ -1329,9 +1329,8 @@ describe('TUI', function()
end)
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")
- return
end
screen:set_rgb_cterm(true)
screen:set_default_attr_ids({