tests.sh: fix warning

This commit is contained in:
Starbeamrainbowlabs 2023-08-14 23:52:59 +01:00
parent 448cf0d674
commit eb14334441
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -96,6 +96,8 @@ run_test() {
else else
"${busted_path}" --coverage --no-auto-insulate --pattern ".test.lua" .tests; "${busted_path}" --coverage --no-auto-insulate --pattern ".test.lua" .tests;
# Delete any pre-existing coverage info from any prev runs
if [[ -d "luacov-html" ]]; then rm -r "luacov-html"; fi
# If it doesn't begin with a dot, then Minetest *will* complain # If it doesn't begin with a dot, then Minetest *will* complain
if [[ -d "luacov-html" ]]; then if [[ -d "luacov-html" ]]; then