fix LUA_PATH for runtests script

This commit is contained in:
Enno Rehling 2021-02-22 01:59:41 +01:00
parent 2bb18d27bc
commit f69a823a14
2 changed files with 1 additions and 5 deletions

View File

@ -3,6 +3,7 @@ set -e
eval $(luarocks path) eval $(luarocks path)
ROOT=$(git rev-parse --show-toplevel) ROOT=$(git rev-parse --show-toplevel)
export LUA_PATH="$ROOT/scripts/?.lua;$LUA_PATH"
[ -z $BUILD ] && BUILD=Debug ; export BUILD [ -z $BUILD ] && BUILD=Debug ; export BUILD
UNIT_TESTS=$ROOT/$BUILD/eressea/test_eressea UNIT_TESTS=$ROOT/$BUILD/eressea/test_eressea

View File

@ -10,8 +10,3 @@ else
end end
path = path .. "/scripts" path = path .. "/scripts"
package.path = path .. '/?.lua;' .. path .. '/?/init.lua;' .. package.path package.path = path .. '/?.lua;' .. path .. '/?/init.lua;' .. package.path
if config.paths ~= nil then
for path in string.gmatch(config.paths, "([^:]+)") do
package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
end
end