[latex3-commits] [git/LaTeX3-latex3-l3build] master: ConTeXt doesn't accept \input on command line (9376ec9)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Mar 22 12:56:05 CET 2018


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/9376ec976ac9e2345d16eaf7748880f878677da9

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

commit 9376ec976ac9e2345d16eaf7748880f878677da9
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Mar 22 11:56:05 2018 +0000

    ConTeXt doesn't accept \input on command line


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

9376ec976ac9e2345d16eaf7748880f878677da9
 l3build-check.lua |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/l3build-check.lua b/l3build-check.lua
index e3c83cd..3197be5 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -654,8 +654,12 @@ function runtest(name, engine, hide, ext, makepdf, breakout)
     checkopts = checkopts .. " -no-pdf"
   end
   -- Special casing for ConTeXt
+  local function setup(file)
+    return " -jobname=" .. name .. " " .. ' "\\input ' .. file .. '" '
+  end
   if match(checkformat, "^context$") then
     format = ""
+    function setup(file) return ' "' .. file .. '" '  end
     if engine == "luatex" or engine == "luajittex" then
       realengine = "context"
     elseif engine == "pdftex" then
@@ -691,8 +695,9 @@ function runtest(name, engine, hide, ext, makepdf, breakout)
       -- Ensure lines are of a known length
       os_setenv .. " max_print_line=" .. maxprintline
         .. os_concat ..
-      realengine .. format .. " -jobname=" .. name .. " "
-        .. asciiopt .. " " .. checkopts .. " \"\\input " .. lvtfile .. "\" "
+      realengine .. format 
+        .. asciiopt .. " " .. checkopts
+        .. setup(lvtfile)
         .. (hide and (" > " .. os_null) or "")
         .. os_concat ..
       runtest_tasks(jobname(lvtfile))





More information about the latex3-commits mailing list