From 189777eef275f9cd93b3b7afb00baf9c9e91b2e4 Mon Sep 17 00:00:00 2001 From: Jude Melton-Houghton Date: Wed, 1 Jun 2022 09:01:00 -0400 Subject: [PATCH] Rename test fixture directory with dot This prevents it from being seen as a mod. --- .luacheckrc | 6 +++--- {test_fixtures => .test_fixtures}/mesecons.lua | 0 {test_fixtures => .test_fixtures}/mesecons_fpga.lua | 0 {test_fixtures => .test_fixtures}/mesecons_gamecompat.lua | 0 {test_fixtures => .test_fixtures}/mesecons_mvps.lua | 0 {test_fixtures => .test_fixtures}/screwdriver.lua | 0 mesecons/spec/mineunit.conf | 2 +- mesecons_fpga/spec/mineunit.conf | 2 +- mesecons_mvps/spec/mineunit.conf | 2 +- 9 files changed, 6 insertions(+), 6 deletions(-) rename {test_fixtures => .test_fixtures}/mesecons.lua (100%) rename {test_fixtures => .test_fixtures}/mesecons_fpga.lua (100%) rename {test_fixtures => .test_fixtures}/mesecons_gamecompat.lua (100%) rename {test_fixtures => .test_fixtures}/mesecons_mvps.lua (100%) rename {test_fixtures => .test_fixtures}/screwdriver.lua (100%) diff --git a/.luacheckrc b/.luacheckrc index 00793d9..f2445a0 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -48,12 +48,12 @@ local test_conf = { }, } files["*/spec/*.lua"] = test_conf -files["test_fixtures/*.lua"] = test_conf +files[".test_fixtures/*.lua"] = test_conf -files["test_fixtures/screwdriver.lua"] = { +files[".test_fixtures/screwdriver.lua"] = { globals = {"screwdriver"}, } -files["test_fixtures/mesecons_fpga.lua"] = { +files[".test_fixtures/mesecons_fpga.lua"] = { globals = {"minetest.register_on_player_receive_fields"}, } diff --git a/test_fixtures/mesecons.lua b/.test_fixtures/mesecons.lua similarity index 100% rename from test_fixtures/mesecons.lua rename to .test_fixtures/mesecons.lua diff --git a/test_fixtures/mesecons_fpga.lua b/.test_fixtures/mesecons_fpga.lua similarity index 100% rename from test_fixtures/mesecons_fpga.lua rename to .test_fixtures/mesecons_fpga.lua diff --git a/test_fixtures/mesecons_gamecompat.lua b/.test_fixtures/mesecons_gamecompat.lua similarity index 100% rename from test_fixtures/mesecons_gamecompat.lua rename to .test_fixtures/mesecons_gamecompat.lua diff --git a/test_fixtures/mesecons_mvps.lua b/.test_fixtures/mesecons_mvps.lua similarity index 100% rename from test_fixtures/mesecons_mvps.lua rename to .test_fixtures/mesecons_mvps.lua diff --git a/test_fixtures/screwdriver.lua b/.test_fixtures/screwdriver.lua similarity index 100% rename from test_fixtures/screwdriver.lua rename to .test_fixtures/screwdriver.lua diff --git a/mesecons/spec/mineunit.conf b/mesecons/spec/mineunit.conf index 50816af..81bd36c 100644 --- a/mesecons/spec/mineunit.conf +++ b/mesecons/spec/mineunit.conf @@ -1 +1 @@ -fixture_paths = {"../test_fixtures"} +fixture_paths = {"../.test_fixtures"} diff --git a/mesecons_fpga/spec/mineunit.conf b/mesecons_fpga/spec/mineunit.conf index 50816af..81bd36c 100644 --- a/mesecons_fpga/spec/mineunit.conf +++ b/mesecons_fpga/spec/mineunit.conf @@ -1 +1 @@ -fixture_paths = {"../test_fixtures"} +fixture_paths = {"../.test_fixtures"} diff --git a/mesecons_mvps/spec/mineunit.conf b/mesecons_mvps/spec/mineunit.conf index 50816af..81bd36c 100644 --- a/mesecons_mvps/spec/mineunit.conf +++ b/mesecons_mvps/spec/mineunit.conf @@ -1 +1 @@ -fixture_paths = {"../test_fixtures"} +fixture_paths = {"../.test_fixtures"}