diff options
author | James McCoy <jamessan@jamessan.com> | 2022-01-08 19:31:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-08 19:31:37 -0500 |
commit | c7ffe406bc54412f5e3ecda01ed9b966993016de (patch) | |
tree | f8b9583db1404e6d52a9747453b91c8c052ed81e | |
parent | 2e5bafa04c0388a6050ef6c9b4f5c875a07b1693 (diff) | |
parent | 14ec38bcf976acab2dbe94d706c12fbc466a6bb0 (diff) | |
download | rneovim-c7ffe406bc54412f5e3ecda01ed9b966993016de.tar.gz rneovim-c7ffe406bc54412f5e3ecda01ed9b966993016de.tar.bz2 rneovim-c7ffe406bc54412f5e3ecda01ed9b966993016de.zip |
Merge pull request #16983 from dundargoc/test/add-vimruntime-variable
test: add VIMRUNTIME variable to the clear function
-rw-r--r-- | test/functional/core/startup_spec.lua | 6 | ||||
-rw-r--r-- | test/functional/helpers.lua | 1 |
2 files changed, 2 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) diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index f152a487af..1845786c4b 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -451,6 +451,7 @@ function module.new_argv(...) 'GCOV_ERROR_FILE', 'XDG_DATA_DIRS', 'TMPDIR', + 'VIMRUNTIME', }) do if not env_tbl[k] then env_tbl[k] = os.getenv(k) |