aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2022-06-08 18:29:58 -0400
committerJames McCoy <jamessan@jamessan.com>2022-06-08 21:10:49 -0400
commita4e1b76f555f40a105b934fe669fff015bf8906e (patch)
tree0aa8388ccf2157441c7a917f8c2c6c33517f6fe1 /test/functional/helpers.lua
parent950ab00c2b210f450da0d5be516cfc6026d1cf56 (diff)
downloadrneovim-a4e1b76f555f40a105b934fe669fff015bf8906e.tar.gz
rneovim-a4e1b76f555f40a105b934fe669fff015bf8906e.tar.bz2
rneovim-a4e1b76f555f40a105b934fe669fff015bf8906e.zip
test: allow running CI without ts parsers installed
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua10
1 files changed, 3 insertions, 7 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index 3d64625752..7c923351ab 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -720,14 +720,10 @@ function module.pending_win32(pending_fn)
end
function module.pending_c_parser(pending_fn)
- local status, msg = unpack(module.exec_lua([[ return {pcall(vim.treesitter.require_language, 'c')} ]]))
+ local status, _ = unpack(module.exec_lua([[ return {pcall(vim.treesitter.require_language, 'c')} ]]))
if not status then
- if module.isCI() then
- error("treesitter C parser not found, required on CI: " .. msg)
- else
- pending_fn 'no C parser, skipping'
- return true
- end
+ pending_fn 'no C parser, skipping'
+ return true
end
return false
end