aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-02-03 04:18:16 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-02-04 11:07:49 +0100
commit978c95e5c484e0b6acf17cd6379a81b83721a5b1 (patch)
tree19710e0dbd252047af3ee07210ac7a708a6430a5 /test/functional/helpers.lua
parentbbfdb84ae14d11dfcf2f28a09f03fdbadc2f5bd2 (diff)
downloadrneovim-978c95e5c484e0b6acf17cd6379a81b83721a5b1.tar.gz
rneovim-978c95e5c484e0b6acf17cd6379a81b83721a5b1.tar.bz2
rneovim-978c95e5c484e0b6acf17cd6379a81b83721a5b1.zip
test: helpers.clear(): Set common env vars only if not passed.
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua4
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