test: forward $VIMRUNTIME in child nvim instances

This commit is contained in:
Gregory Anders
2023-12-07 09:28:46 -08:00
parent 5e78fd7784
commit 8957df4f22
6 changed files with 52 additions and 5 deletions

View File

@@ -866,7 +866,11 @@ describe('user config init', function()
local screen = Screen.new(50, 8)
screen:attach()
funcs.termopen({nvim_prog})
funcs.termopen({nvim_prog}, {
env = {
VIMRUNTIME = os.getenv('VIMRUNTIME'),
},
})
screen:expect({ any = pesc('[i]gnore, (v)iew, (d)eny, (a)llow:') })
-- `i` to enter Terminal mode, `a` to allow
feed('ia')