kodev: pass correct --lpath for base test (#4973)

pull/4978/head
Frans de Jonge 5 years ago committed by GitHub
parent 3f670baaa2
commit 5690998124
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
}

Loading…
Cancel
Save