Skip to content

Commit

Permalink
Suppress runtest_tasks() if empty
Browse files Browse the repository at this point in the history
This avoids an unrequired shell call.
  • Loading branch information
josephwright committed Dec 12, 2023
1 parent d1dccb5 commit 4d8e5d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l3build-check.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d8e5d9

Please sign in to comment.