[latex3-commits] [latex3/l3build] main: Suppress runtest_tasks() if empty (4d8e5d9)
github at latex-project.org
github at latex-project.org
Tue Dec 12 19:37:29 CET 2023
Repository : https://github.com/latex3/l3build
On branch : main
Link : https://github.com/latex3/l3build/commit/4d8e5d94341e9d593ddb409805fb7643c91074fd
>---------------------------------------------------------------
commit 4d8e5d94341e9d593ddb409805fb7643c91074fd
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Tue Dec 12 18:37:29 2023 +0000
Suppress runtest_tasks() if empty
This avoids an unrequired shell call.
>---------------------------------------------------------------
4d8e5d94341e9d593ddb409805fb7643c91074fd
l3build-check.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/l3build-check.lua b/l3build-check.lua
index e846e8a..3718d17 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -824,7 +824,7 @@ function runtest(name, engine, hide, ext, test_type, breakout)
)
-- On Windows, concatenating here will suppress any non-zero errorlevel
-- from the main run, so we split into two parts.
- if errlevels[i] == 0 then
+ if errlevels[i] == 0 and runtest_tasks("X",0) ~= "" then
local errorlevel =
runcmd(preamble .. runtest_tasks(jobname(lvtfile),i),testdir)
if errorlevel ~= 0 then errlevels[i] = errorlevel end
More information about the latex3-commits
mailing list.