forked from github/server
fix LUA_PATH for runtests script
This commit is contained in:
parent
2bb18d27bc
commit
f69a823a14
|
@ -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
|
||||||
|
|
|
@ -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
|
|
||||||
|
|
Loading…
Reference in New Issue