tests/run.sh: Use --search instead of $LUA_PATH

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-07-24 15:03:05 +02:00
parent 24bb38969d
commit 71049a67f7
1 changed files with 2 additions and 3 deletions

View File

@ -82,11 +82,10 @@ fi
cd $build_dir cd $build_dir
LUA_PATH="$(lua -e 'print(package.path)');lib/?.lua;lib/?/init.lua" AWESOME_OPTIONS="$AWESOME_OPTIONS --search lib/"
# Add test dir (for _runner.lua). # Add test dir (for _runner.lua).
LUA_PATH="$LUA_PATH;$this_dir/?.lua" AWESOME_OPTIONS="$AWESOME_OPTIONS --search $this_dir"
XDG_CONFIG_HOME="./" XDG_CONFIG_HOME="./"
export LUA_PATH
export XDG_CONFIG_HOME export XDG_CONFIG_HOME
cd - >/dev/null cd - >/dev/null