aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core/main_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-12-08 08:00:27 +0800
committerGitHub <noreply@github.com>2023-12-08 08:00:27 +0800
commit3bb5d2f2192b63e368a4f573f66406eba3ee66b3 (patch)
tree05ce75681734aae42887dcf1b02c802dab08c731 /test/functional/core/main_spec.lua
parent5e3c1b976ab4664bde2f546ac15510f4d888a39e (diff)
downloadrneovim-3bb5d2f2192b63e368a4f573f66406eba3ee66b3.tar.gz
rneovim-3bb5d2f2192b63e368a4f573f66406eba3ee66b3.tar.bz2
rneovim-3bb5d2f2192b63e368a4f573f66406eba3ee66b3.zip
test: use termopen() instead of :terminal more (#26462)
Diffstat (limited to 'test/functional/core/main_spec.lua')
-rw-r--r--test/functional/core/main_spec.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/core/main_spec.lua b/test/functional/core/main_spec.lua
index c8d800f89a..37d659739c 100644
--- a/test/functional/core/main_spec.lua
+++ b/test/functional/core/main_spec.lua
@@ -68,7 +68,9 @@ describe('command-line option', function()
-- Need to explicitly pipe to stdin so that the embedded Nvim instance doesn't try to read
-- data from the terminal #18181
- funcs.termopen(string.format([[echo "" | %s]], table.concat(args, " ")))
+ funcs.termopen(string.format([[echo "" | %s]], table.concat(args, " ")), {
+ env = { VIMRUNTIME = os.getenv('VIMRUNTIME') }
+ })
screen:expect([[
{1:^ }|
{2:~ }|