diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-26 03:00:29 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-26 03:00:29 +0000 |
commit | 55b9d356c616c30b8a2892babf47015ca39fb549 (patch) | |
tree | b478f5efdd2e5f86d0f3b45812fe87f1db2990ca /macros/latex/contrib/l3build/l3build-check.lua | |
parent | d232e1107d60e7689e706bee9705f26745ae8b9e (diff) |
CTAN sync 201909260300
Diffstat (limited to 'macros/latex/contrib/l3build/l3build-check.lua')
-rw-r--r-- | macros/latex/contrib/l3build/l3build-check.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/macros/latex/contrib/l3build/l3build-check.lua b/macros/latex/contrib/l3build/l3build-check.lua index 8d1d58aee3..731d4282ea 100644 --- a/macros/latex/contrib/l3build/l3build-check.lua +++ b/macros/latex/contrib/l3build/l3build-check.lua @@ -721,14 +721,21 @@ function runtest(name, engine, hide, ext, pdfmode, breakout) -- Ensure there is no stray .log file rm(testdir,name .. logext) local errlevels = {} + local localtexmf = "" + if texmfdir and texmfdir ~= "" then + localtexmf = os_pathsep .. abspath(texmfdir) .. "//" + end + local texmfdir = abspath(texmfdir) .. "//" for i = 1, checkruns do errlevels[i] = run( testdir, -- No use of localdir here as the files get copied to testdir: -- avoids any paths in the logs - os_setenv .. " TEXINPUTS=." .. (checksearch and os_pathsep or "") + os_setenv .. " TEXINPUTS=." .. localtexmf + .. (checksearch and os_pathsep or "") .. os_concat .. - os_setenv .. " LUAINPUTS=." .. (checksearch and os_pathsep or "") + os_setenv .. " LUAINPUTS=." .. localtexmf + .. (checksearch and os_pathsep or "") .. os_concat .. -- Avoid spurious output from (u)pTeX os_setenv .. " GUESS_INPUT_KANJI_ENCODING=0" |