[latex3-commits] [git/LaTeX3-latex3-l3build] master: Handle named tests with multiple configs (see #15) (0004839)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Feb 21 11:16:55 CET 2018


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/00048390bae801efa1b2deb52bb75127b0daa130

>---------------------------------------------------------------

commit 00048390bae801efa1b2deb52bb75127b0daa130
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Feb 21 10:16:38 2018 +0000

    Handle named tests with multiple configs (see #15)
    
    Only use the std config unless requested.


>---------------------------------------------------------------

00048390bae801efa1b2deb52bb75127b0daa130
 l3build.lua |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/l3build.lua b/l3build.lua
index 1044719..0c3433c 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -65,8 +65,18 @@ build_require("stdmain")
 -- Allow main function to be disabled 'higher up'
 main = main or stdmain
 
+--
 -- Deal with multiple configs for tests
-checkconfigs = options["config"] or checkconfigs
+--
+ 
+-- When we have specific files to deal with, only use explicit configs
+-- (or just the std one)
+if options["files"] then
+  checkconfigs = options["config"] or {stdconfig}
+else 
+  checkconfigs = options["config"] or checkconfigs
+end
+
 if options["target"] == "check" then
   if #checkconfigs > 1 then
     local errorlevel = 0





More information about the latex3-commits mailing list