fix(ci): use proper redirection with un-mocked vim.system in integration tests
This commit is contained in:
parent
069df71871
commit
f487b5d006
2 changed files with 54 additions and 60 deletions
|
|
@ -83,7 +83,9 @@ function M.compile_generic(language_config, substitutions)
|
|||
|
||||
local compile_cmd = substitute_template(language_config.compile, substitutions)
|
||||
local redirected_cmd = vim.deepcopy(compile_cmd)
|
||||
redirected_cmd[#redirected_cmd] = redirected_cmd[#redirected_cmd] .. ' 2>&1'
|
||||
if #redirected_cmd > 0 then
|
||||
redirected_cmd[#redirected_cmd] = redirected_cmd[#redirected_cmd] .. ' 2>&1'
|
||||
end
|
||||
|
||||
local start_time = vim.uv.hrtime()
|
||||
local result = vim
|
||||
|
|
@ -116,7 +118,9 @@ local function execute_command(cmd, input_data, timeout_ms)
|
|||
})
|
||||
|
||||
local redirected_cmd = vim.deepcopy(cmd)
|
||||
redirected_cmd[#redirected_cmd] = redirected_cmd[#redirected_cmd] .. ' 2>&1'
|
||||
if #redirected_cmd > 0 then
|
||||
redirected_cmd[#redirected_cmd] = redirected_cmd[#redirected_cmd] .. ' 2>&1'
|
||||
end
|
||||
|
||||
local start_time = vim.uv.hrtime()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue