diff options
-rw-r--r-- | test/functional/helpers.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index 880cb6546c..ca59c0dd2e 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -290,7 +290,9 @@ local function clear(...) 'NVIM_LOG_FILE', 'NVIM_RPLUGIN_MANIFEST', }) do - env_tbl[k] = os.getenv(k) + if not env_tbl[k] then + env_tbl[k] = os.getenv(k) + end end env = {} for k, v in pairs(env_tbl) do |