mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
test: add VIMRUNTIME variable to the clear function
Some of the tests will fail if this isn't explicitly set.
This commit is contained in:
@@ -668,11 +668,7 @@ describe('runtime:', function()
|
||||
mkdir_p(ftdetect_folder)
|
||||
write_file(ftdetect_file , [[vim.g.lua_ftdetect = 1]])
|
||||
|
||||
-- TODO(shadmansaleh): Figure out why this test fails without
|
||||
-- setting VIMRUNTIME
|
||||
clear{ args_rm={'-u'}, env={XDG_CONFIG_HOME=xconfig,
|
||||
XDG_DATA_HOME=xdata,
|
||||
VIMRUNTIME='runtime/'}}
|
||||
clear{ args_rm={'-u'}, env=xenv }
|
||||
|
||||
eq(1, eval('g:lua_ftdetect'))
|
||||
rmdir(ftdetect_folder)
|
||||
|
Reference in New Issue
Block a user