test(tui_spec): don't run tty-test in a shell (#39186)

This commit is contained in:
zeertzjq
2026-04-18 19:53:19 +08:00
committed by GitHub
parent 68f7acaaae
commit 48d11681c2

View File

@@ -23,7 +23,6 @@ local ok = t.ok
local read_file = t.read_file
local fn = n.fn
local api = n.api
local is_ci = t.is_ci
local is_os = t.is_os
local new_pipename = n.new_pipename
local set_session = n.set_session
@@ -1767,11 +1766,8 @@ describe('TUI', function()
end)
it('paste: terminal mode', function()
if is_ci('github') then
pending('tty-test complains about not owning the terminal -- actions/runner#241')
end
child_exec_lua('vim.o.statusline="^^^^^^^"')
child_exec_lua('vim.cmd.terminal(...)', testprg('tty-test'))
child_exec_lua('vim.fn.jobstart({ ... }, { term = true })', testprg('tty-test'))
feed_data('i')
screen:expect([[
tty ready |
@@ -2277,9 +2273,7 @@ describe('TUI', function()
end)
it('forwards :term palette colors with termguicolors', function()
if is_ci('github') then
pending('tty-test complains about not owning the terminal -- actions/runner#241')
end
t.skip(is_os('win'), 'FIXME: wrong behavior on Windows')
screen:set_rgb_cterm(true)
screen:set_default_attr_ids({
[1] = { { reverse = true }, { reverse = true } },
@@ -2313,7 +2307,7 @@ describe('TUI', function()
child_exec_lua('vim.o.statusline="^^^^^^^"')
child_exec_lua('vim.o.termguicolors=true')
child_exec_lua('vim.cmd.terminal(...)', testprg('tty-test'))
child_exec_lua('vim.fn.jobstart({ ... }, { term = true })', testprg('tty-test'))
screen:expect([[
^tty ready |
|*3