move luacov-html to start with a dot (.)

Otherwise Minetest complains
This commit is contained in:
Starbeamrainbowlabs 2023-07-12 22:27:37 +01:00
parent 2b66de555d
commit 9d82648ac3
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 6 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
luacov-html luacov-html
.luacov-html
_site/ _site/
.luarocks/ .luarocks/

View file

@ -90,6 +90,11 @@ run_test() {
fi fi
"${busted_path}" --coverage --no-auto-insulate --pattern ".test.lua" .tests; "${busted_path}" --coverage --no-auto-insulate --pattern ".test.lua" .tests;
# If it doesn't begin with a dot, then Minetest *will* complain
if [[ -d "luacov-html" ]]; then
mv "luacov-html" ".luacov-html";
fi
# Remove, but only if empty # Remove, but only if empty
if [[ -s "luacov.report.out" ]]; then : if [[ -s "luacov.report.out" ]]; then :
else rm "luacov.report.out"; fi else rm "luacov.report.out"; fi