From 4d8e5d94341e9d593ddb409805fb7643c91074fd Mon Sep 17 00:00:00 2001 From: Joseph Wright Date: Tue, 12 Dec 2023 18:37:29 +0000 Subject: [PATCH] Suppress runtest_tasks() if empty This avoids an unrequired shell call. --- 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