From 9d0db93deed9d40290895126c99c17471d5948b3 Mon Sep 17 00:00:00 2001 From: Mergen Imeev Date: Mon, 6 Apr 2026 17:48:52 +0300 Subject: [PATCH] Remove LUA_PATH provided to luatest There is no need to specify `LUA_PATH` anymore, since starting with luatest 1.4.3 the Tarantool `package.searchroot` mechanism is supported. --- bin/luatest | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/bin/luatest b/bin/luatest index e51b98b7..8bfb9b56 100755 --- a/bin/luatest +++ b/bin/luatest @@ -1,20 +1,5 @@ #!/usr/bin/env tarantool --- --- Add the luatest module to LUA_PATH so that it can be used in processes --- spawned by tests. --- -local fio = require('fio') -local path = package.search('luatest') -if path == nil then - error('luatest not found') -end -path = fio.dirname(path) -- strip init.lua -path = fio.dirname(path) -- strip luatest -os.setenv('LUA_PATH', - path .. '/?.lua;' .. path .. '/?/init.lua;' .. - (os.getenv('LUA_PATH') or ';')) - print(('Tarantool version is %s'):format(require('tarantool').version)) require('luatest.cli_entrypoint')()