From 48ab8673c7473e1966c593fc0e6c390b7156f366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LAURENS=20J=C3=A9r=C3=B4me?= Date: Mon, 1 Jul 2024 12:54:34 +0200 Subject: [PATCH] Update l3build-check.lua runtest_tasks called only once --- l3build-check.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/l3build-check.lua b/l3build-check.lua index d6d30e3..11c8973 100644 --- a/l3build-check.lua +++ b/l3build-check.lua @@ -828,9 +828,9 @@ 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 runtest_tasks(jobname(lvtfile),i) ~= "" then - local errorlevel = - runcmd(preamble .. runtest_tasks(jobname(lvtfile),i),testdir) + local tasks = runtest_tasks(jobname(lvtfile),i) + if tasks ~= "" then + local errorlevel = runcmd(preamble .. tasks,testdir) if errorlevel ~= 0 then errlevels[i] = errorlevel end end -- Break the loop if the result is stable