Skip to content

Commit

Permalink
Apply unix_to_win() in all cases before doing diff/fc (fixes #51)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Jan 27, 2018
1 parent 4de7c72 commit ca7194c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions l3build-check.lua
Expand Up @@ -565,7 +565,6 @@ function compare_tlg(name, engine)
if not tlgfile then
return
end
tlgfile = unix_to_win(tlgfile)
-- Do additional log formatting if the engine is LuaTeX, there is no
-- LuaTeX-specific .tlg file and the default engine is not LuaTeX
if engine == "luatex"
Expand All @@ -574,14 +573,16 @@ function compare_tlg(name, engine)
and stdengine ~= "luajittex"
then
local luatlgfile = testdir .. "/" .. name .. ".luatex" .. tlgext
luatlgfile = unix_to_win(luatlgfile)
formatlualog(tlgfile, luatlgfile)
formatlualog(logfile, logfile)
-- This allows code sharing below: we only need the .tlg name in one place
tlgfile = luatlgfile
end
errorlevel = execute(
os_diffexe .. " " .. tlgfile .. " " .. logfile .. " > " .. difffile
os_diffexe .. " "
.. unix_to_win(tlgfile) .. " "
.. unix_to_win(logfile) .. " > "
.. unix_to_win(difffile)
)
if errorlevel == 0 then
os.remove(difffile)
Expand Down

0 comments on commit ca7194c

Please sign in to comment.