aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/fs_spec.lua
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-03-05 11:21:37 +0100
committerGitHub <noreply@github.com>2023-03-05 11:21:37 +0100
commitba38f35d3e2f37c2289543e6e0c4451c679c5834 (patch)
tree484499c75698bfbed255e00cda365f3e0d386cf7 /test/functional/lua/fs_spec.lua
parent836733dad8ca63a590eded1e3991444bac62b4b8 (diff)
downloadrneovim-ba38f35d3e2f37c2289543e6e0c4451c679c5834.tar.gz
rneovim-ba38f35d3e2f37c2289543e6e0c4451c679c5834.tar.bz2
rneovim-ba38f35d3e2f37c2289543e6e0c4451c679c5834.zip
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.
Diffstat (limited to 'test/functional/lua/fs_spec.lua')
-rw-r--r--test/functional/lua/fs_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/lua/fs_spec.lua b/test/functional/lua/fs_spec.lua
index 03de16c079..da60b5c13b 100644
--- a/test/functional/lua/fs_spec.lua
+++ b/test/functional/lua/fs_spec.lua
@@ -260,7 +260,7 @@ describe('vim.fs', function()
]], test_source_path),
exec_lua([[
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))
]], test_source_path))
end)