aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ex_cmds
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-07-03 22:49:13 +0200
committerGitHub <noreply@github.com>2019-07-03 22:49:13 +0200
commitf6298aba82f5378f5c53ab746c3f976b645d0a98 (patch)
tree44213f1a6ab85f732486b82cf5c030093ae5e0e1 /test/functional/ex_cmds
parent0dc73b87f10b67f9a8648cbf8936ba5f76a41def (diff)
downloadrneovim-f6298aba82f5378f5c53ab746c3f976b645d0a98.tar.gz
rneovim-f6298aba82f5378f5c53ab746c3f976b645d0a98.tar.bz2
rneovim-f6298aba82f5378f5c53ab746c3f976b645d0a98.zip
tests: shell-test: add INTERACT mode (#10405)
Use it to improve ls_spec: it should not use the user's real shell for performance and other reasons.
Diffstat (limited to 'test/functional/ex_cmds')
-rw-r--r--test/functional/ex_cmds/ls_spec.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/ex_cmds/ls_spec.lua b/test/functional/ex_cmds/ls_spec.lua
index 0ff6f2da8a..f7bacd7386 100644
--- a/test/functional/ex_cmds/ls_spec.lua
+++ b/test/functional/ex_cmds/ls_spec.lua
@@ -4,6 +4,8 @@ local command = helpers.command
local eq = helpers.eq
local eval = helpers.eval
local feed = helpers.feed
+local nvim = helpers.nvim
+local nvim_dir = helpers.nvim_dir
local retry = helpers.retry
describe(':ls', function()
@@ -12,6 +14,8 @@ describe(':ls', function()
end)
it('R, F for :terminal buffers', function()
+ nvim('set_option', 'shell', string.format('"%s" INTERACT', nvim_dir..'/shell-test'))
+
command('edit foo')
command('set hidden')
command('terminal')