mirror of
https://github.com/neovim/neovim.git
synced 2026-05-05 13:35:02 +00:00
test: set notermguicolors in tests
Set 'notermguicolors' in tests which spawn a child Nvim process to force existing tests to use 16 colors. Also refactor the child process invocation to make things a little bit less messy.
This commit is contained in:
@@ -11,8 +11,12 @@ describe('api', function()
|
||||
before_each(function()
|
||||
helpers.clear()
|
||||
os.remove(socket_name)
|
||||
screen = child_session.screen_setup(0, '["'..helpers.nvim_prog
|
||||
..'", "-u", "NONE", "-i", "NONE", "--cmd", "colorscheme vim", "--cmd", "'..helpers.nvim_set..'"]')
|
||||
screen = child_session.setup_child_nvim({
|
||||
'-u', 'NONE',
|
||||
'-i', 'NONE',
|
||||
'--cmd', 'colorscheme vim',
|
||||
'--cmd', helpers.nvim_set,
|
||||
})
|
||||
end)
|
||||
after_each(function()
|
||||
os.remove(socket_name)
|
||||
|
||||
Reference in New Issue
Block a user