aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core/startup_spec.lua
diff options
context:
space:
mode:
authorDundar Göc <gocdundar@gmail.com>2022-01-07 22:37:41 +0100
committerDundar Göc <gocdundar@gmail.com>2022-01-08 14:40:29 +0100
commit14ec38bcf976acab2dbe94d706c12fbc466a6bb0 (patch)
treef6d738cc69537bbd68c18e9b52a4dad2ee1c9a90 /test/functional/core/startup_spec.lua
parent3088ac71f9fb7eb409a24aac6b2339e004658884 (diff)
downloadrneovim-14ec38bcf976acab2dbe94d706c12fbc466a6bb0.tar.gz
rneovim-14ec38bcf976acab2dbe94d706c12fbc466a6bb0.tar.bz2
rneovim-14ec38bcf976acab2dbe94d706c12fbc466a6bb0.zip
test: add VIMRUNTIME variable to the clear function
Some of the tests will fail if this isn't explicitly set.
Diffstat (limited to 'test/functional/core/startup_spec.lua')
-rw-r--r--test/functional/core/startup_spec.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua
index ecec18346a..2fa84e8313 100644
--- a/test/functional/core/startup_spec.lua
+++ b/test/functional/core/startup_spec.lua
@@ -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)