mirror of
https://github.com/neovim/neovim.git
synced 2025-09-09 04:48:18 +00:00
functests: Do not forget about -i argument
Target: make all tests run with chmod -x ~/.config/nvim ~/.local/share/nvim.
This commit is contained in:
@@ -118,7 +118,7 @@ describe('server -> client', function()
|
|||||||
|
|
||||||
describe('when the client is a recursive vim instance', function()
|
describe('when the client is a recursive vim instance', function()
|
||||||
before_each(function()
|
before_each(function()
|
||||||
nvim('command', "let vim = rpcstart('"..nvim_prog.."', ['-u', 'NONE', '--embed'])")
|
nvim('command', "let vim = rpcstart('"..nvim_prog.."', ['-u', 'NONE', '-i', 'NONE', '--embed'])")
|
||||||
neq(0, eval('vim'))
|
neq(0, eval('vim'))
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
@@ -47,7 +47,7 @@ describe(':preserve', function()
|
|||||||
|
|
||||||
--TODO(justinmk): this is an ugly hack to force `helpers` to support
|
--TODO(justinmk): this is an ugly hack to force `helpers` to support
|
||||||
--multiple sessions.
|
--multiple sessions.
|
||||||
local nvim2 = helpers.spawn({helpers.nvim_prog, '-u', 'NONE', '--embed'},
|
local nvim2 = helpers.spawn({helpers.nvim_prog, '-u', 'NONE', '-i', 'NONE', '--embed'},
|
||||||
true)
|
true)
|
||||||
helpers.set_session(nvim2)
|
helpers.set_session(nvim2)
|
||||||
|
|
||||||
|
@@ -13,7 +13,7 @@ describe(':wshada', function()
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Override the default session because we need 'swapfile' for these tests.
|
-- Override the default session because we need 'swapfile' for these tests.
|
||||||
local session = spawn({nvim_prog, '-u', 'NONE', '--embed',
|
local session = spawn({nvim_prog, '-u', 'NONE', '-i', '/dev/null', '--embed',
|
||||||
'--cmd', 'set swapfile'})
|
'--cmd', 'set swapfile'})
|
||||||
set_session(session)
|
set_session(session)
|
||||||
|
|
||||||
|
@@ -11,7 +11,7 @@ describe('tui', function()
|
|||||||
|
|
||||||
before_each(function()
|
before_each(function()
|
||||||
helpers.clear()
|
helpers.clear()
|
||||||
screen = thelpers.screen_setup(0, '["'..helpers.nvim_prog..'", "-u", "NONE", "--cmd", "set noswapfile"]')
|
screen = thelpers.screen_setup(0, '["'..helpers.nvim_prog..'", "-u", "NONE", "-i", "NONE", "--cmd", "set noswapfile"]')
|
||||||
screen.timeout = 30000 -- pasting can be really slow in the TUI
|
screen.timeout = 30000 -- pasting can be really slow in the TUI
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
{1: } |
|
{1: } |
|
||||||
|
@@ -125,7 +125,7 @@ end
|
|||||||
|
|
||||||
do
|
do
|
||||||
local spawn, nvim_prog = helpers.spawn, helpers.nvim_prog
|
local spawn, nvim_prog = helpers.spawn, helpers.nvim_prog
|
||||||
local session = spawn({nvim_prog, '-u', 'NONE', '-N', '--embed'})
|
local session = spawn({nvim_prog, '-u', 'NONE', '-i', 'NONE', '-N', '--embed'})
|
||||||
local status, rv = session:request('vim_get_color_map')
|
local status, rv = session:request('vim_get_color_map')
|
||||||
if not status then
|
if not status then
|
||||||
print('failed to get color map')
|
print('failed to get color map')
|
||||||
|
Reference in New Issue
Block a user