aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-05-30 07:21:45 +0200
committerJustin M. Keyes <justinkz@gmail.com>2018-06-04 02:09:28 +0200
commitd8c7ff13352d7182826b5716ff3b6a66df241231 (patch)
treed9c451c4933a6fd60683ae2925abd3c2ae34d90d /test/functional/helpers.lua
parent1f300e08b8c0c35b2f3d79506ae9817cd8591624 (diff)
downloadrneovim-d8c7ff13352d7182826b5716ff3b6a66df241231.tar.gz
rneovim-d8c7ff13352d7182826b5716ff3b6a66df241231.tar.bz2
rneovim-d8c7ff13352d7182826b5716ff3b6a66df241231.zip
cleanup, test interactive -E
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index 9895281773..a6d2764187 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -316,6 +316,14 @@ local function retry(max, max_ms, fn)
end
end
+-- Starts a new global Nvim session.
+-- Parameters are interpreted as startup args, OR a map with these keys:
+-- args: Merged with the default `nvim_argv` set.
+-- env : Defines the environment of the new session.
+--
+-- Example:
+-- clear('-e')
+-- clear({args={'-e'}, env={TERM=term}})
local function clear(...)
local args = {unpack(nvim_argv)}
local new_args