diff --git a/kodev b/kodev index 4252e7bfb..59025d6a9 100755 --- a/kodev +++ b/kodev @@ -749,16 +749,18 @@ OPTIONS: make "${EMU_DIR}/.busted" pushd "${EMU_DIR}" && { - test_path="./spec/$1/unit" - rm -rf "${test_path}"/data/*.sdr + test_path_basedir="./spec/$1/unit" + rm -rf "${test_path_basedir}"/data/*.sdr + test_path="${test_path_basedir}" if [ -n "${2}" ]; then - test_path="${test_path}/$2" + test_path="${test_path_basedir}/$2" fi echo "Running tests in" "${test_path}" busted --lua="./luajit" "${opts}" \ --output=gtest \ + --lpath="${test_path_basedir}/?.lua" \ --exclude-tags=notest "${test_path}" } && popd || exit }