From 9d82648ac3f85b7762bf7c4f9c84a668fbbaf88e Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Wed, 12 Jul 2023 22:27:37 +0100 Subject: [PATCH] move luacov-html to start with a dot (.) Otherwise Minetest complains --- .gitignore | 1 + tests.sh | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 7f1509c..5956968 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ luacov-html +.luacov-html _site/ .luarocks/ diff --git a/tests.sh b/tests.sh index caa5202..fd84caa 100755 --- a/tests.sh +++ b/tests.sh @@ -90,6 +90,11 @@ run_test() { fi "${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 if [[ -s "luacov.report.out" ]]; then : else rm "luacov.report.out"; fi