diff --git a/ci/test.lua b/ci/test.lua index 81ed19344..de9389b00 100644 --- a/ci/test.lua +++ b/ci/test.lua @@ -379,7 +379,7 @@ local function load_tests(file, tests) dfhack.printerr('Skipping tests for unspecified target in ' .. file) return true -- TODO: change to false once existing tests have targets specified end - local targets = type(env.config.target) == table and env.config.target or {env.config.target} + local targets = type(env.config.target) == 'table' and env.config.target or {env.config.target} for _,target in ipairs(targets) do if target == 'core' then goto continue end if type(target) ~= 'string' or not helpdb.is_entry(target) or