summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/l3build/l3build-check.lua
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/l3build/l3build-check.lua')
-rw-r--r--macros/latex/contrib/l3build/l3build-check.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/macros/latex/contrib/l3build/l3build-check.lua b/macros/latex/contrib/l3build/l3build-check.lua
index e7569b69d2..e7bc388bd1 100644
--- a/macros/latex/contrib/l3build/l3build-check.lua
+++ b/macros/latex/contrib/l3build/l3build-check.lua
@@ -697,8 +697,11 @@ function compare_tlg(difffile, tlgfile, logfile, cleanup, name, engine)
local testname = name .. "." .. engine
-- Do additional log formatting if the engine is LuaTeX, there is no
-- engine-specific .tlg file and the default engine is not LuaTeX
+ local has_engine_specific_tlg =
+ match(tlgfile, "%." .. engine .. "%" .. tlgext)
+ and locate({ testfiledir, unpackdir }, { tlgfile })
if (match(engine,"^lua") or match(engine,"^harf"))
- and not match(tlgfile, "%." .. engine .. "%" .. tlgext)
+ and not has_engine_specific_tlg
and not match(stdengine,"^lua")
then
local lualogfile = logfile