mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 01:02:09 +00:00
refactor(tests): introduce testprg()
Also: - Add a describe('shell :!') section to system_spec. - Make the test for #16271 work on systems without powershell.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
local luv = require('luv')
|
||||
local helpers = require('test.functional.helpers')(after_each)
|
||||
|
||||
local clear, command, nvim, nvim_dir =
|
||||
helpers.clear, helpers.command, helpers.nvim, helpers.nvim_dir
|
||||
local clear, command, nvim, testprg =
|
||||
helpers.clear, helpers.command, helpers.nvim, helpers.testprg
|
||||
local eval, eq, neq, retry =
|
||||
helpers.eval, helpers.eq, helpers.neq, helpers.retry
|
||||
local ok = helpers.ok
|
||||
@@ -12,7 +12,7 @@ local iswin = helpers.iswin
|
||||
describe('autocmd TermClose', function()
|
||||
before_each(function()
|
||||
clear()
|
||||
nvim('set_option', 'shell', nvim_dir .. '/shell-test')
|
||||
nvim('set_option', 'shell', testprg('shell-test'))
|
||||
command('set shellcmdflag=EXE shellredir= shellpipe= shellquote= shellxquote=')
|
||||
end)
|
||||
|
||||
|
Reference in New Issue
Block a user