mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
server_requests_spec: fix assertion, pass Lua paths via args (#10875)
This makes it pick up the nvim Luarocks module properly when not installed via third-party.
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
local deps_prefix = (os.getenv('DEPS_PREFIX') and os.getenv('DEPS_PREFIX')
|
||||
or './.deps/usr')
|
||||
|
||||
package.path = deps_prefix .. '/share/lua/5.1/?.lua;' ..
|
||||
deps_prefix .. '/share/lua/5.1/?/init.lua;' ..
|
||||
package.path
|
||||
|
||||
package.cpath = deps_prefix .. '/lib/lua/5.1/?.so;' ..
|
||||
package.cpath
|
||||
--- RPC server fixture.
|
||||
--
|
||||
-- Lua's paths are passed as arguments to reflect the path in the test itself.
|
||||
package.path = arg[1]
|
||||
package.cpath = arg[2]
|
||||
|
||||
local mpack = require('mpack')
|
||||
local StdioStream = require('nvim.stdio_stream')
|
||||
|
||||
Reference in New Issue
Block a user