mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test: don't search entire repo for files
Searching the entire repo for a directory named "contrib" causes failure if there happens to be another subdirectory with the name "contrib". Instead, point directly to the correct contrib directory.
This commit is contained in:
parent
836733dad8
commit
ba38f35d3e
@ -260,7 +260,7 @@ describe('vim.fs', function()
|
|||||||
]], test_source_path),
|
]], test_source_path),
|
||||||
exec_lua([[
|
exec_lua([[
|
||||||
local dir = ...
|
local dir = ...
|
||||||
local opts = { path = dir, limit = math.huge }
|
local opts = { path = dir .. "/contrib", limit = math.huge }
|
||||||
return vim.tbl_map(vim.fs.basename, vim.fs.find(function(_, d) return d:match('[\\/]contrib$') end, opts))
|
return vim.tbl_map(vim.fs.basename, vim.fs.find(function(_, d) return d:match('[\\/]contrib$') end, opts))
|
||||||
]], test_source_path))
|
]], test_source_path))
|
||||||
end)
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user