[latex3-commits] [git/LaTeX3-latex3-l3build] master: More info for multi-config failures (92dd219)
Joseph Wright
joseph.wright at morningstar2.co.uk
Fri Aug 3 22:53:33 CEST 2018
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/92dd219f8f178ff563bb1a537d5116f12c6996e5
>---------------------------------------------------------------
commit 92dd219f8f178ff563bb1a537d5116f12c6996e5
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Fri Aug 3 21:53:33 2018 +0100
More info for multi-config failures
>---------------------------------------------------------------
92dd219f8f178ff563bb1a537d5116f12c6996e5
l3build.lua | 22 +++++++++++++++++++---
1 file changed, 19 insertions(+), 3 deletions(-)
diff --git a/l3build.lua b/l3build.lua
index 3853d98..5387d87 100755
--- a/l3build.lua
+++ b/l3build.lua
@@ -34,6 +34,7 @@ local lfs = require("lfs")
local assert = assert
local ipairs = ipairs
+local insert = table.insert
local lookup = kpse.lookup
local match = string.match
local next = next
@@ -123,13 +124,28 @@ if options["target"] == "check" then
if #checkconfigs > 1 then
local errorlevel = 0
local opts = options
+ local failed = { }
for i = 1, #checkconfigs do
opts["config"] = {checkconfigs[i]}
errorlevel = call({"."}, "check", opts)
- if errorlevel ~= 0 and options["halt-on-error"] then exit(1) end
+ if errorlevel ~= 0 then
+ if options["halt-on-error"] then
+ exit(1)
+ else
+ insert(failed,checkconfigs[i])
+ end
+ end
+ end
+ if next(failed) then
+ print(" Failed tests for configs:")
+ for _,config in ipairs(failed) do
+ print(" - " .. config)
+ end
+ exit(1)
+ else
+ -- Avoid running the 'main' set of tests twice
+ exit(0)
end
- -- Avoid running the 'main' set of tests twice
- exit(0)
end
end
if #checkconfigs == 1 and
More information about the latex3-commits
mailing list