I managed to break the test system... somehow. Fix.

This commit is contained in:
David Given 2019-06-17 00:52:09 +02:00
parent 402468f6fd
commit 2c8498cf87

View file

@ -11,7 +11,7 @@ definerule("plat_testsuite",
function(e) function(e)
-- Remember this is executed from the caller's directory; local -- Remember this is executed from the caller's directory; local
-- target names will resolve there. -- target names will resolve there.
local testfiles = e.tests local testfiles = filenamesof(e.tests)
local skipsets = {} local skipsets = {}
for _, set in ipairs(e.skipsets) do for _, set in ipairs(e.skipsets) do
skipsets[set] = true skipsets[set] = true
@ -40,7 +40,7 @@ definerule("plat_testsuite",
local tests = {} local tests = {}
for _, f in ipairs(testfiles) do for _, f in ipairs(testfiles) do
local fs = replace(basename(filenamesof(f)[1]), "%.[^.]+$", "") local fs = replace(basename(f), "%.[^.]+$", "")
local _, _, lang = fs:find("_([^_]+)$") local _, _, lang = fs:find("_([^_]+)$")
if not lang then if not lang then
lang = "e" lang = "e"