[latex3-commits] [git/LaTeX3-latex3-l3build] experimental, master: File renaming must occur (bd2fd27)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Jul 31 23:06:30 CEST 2019


Repository : https://github.com/latex3/l3build
On branches: experimental,master
Link       : https://github.com/latex3/l3build/commit/bd2fd275282f123987e6a551c40a1ac0a4dba056

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

commit bd2fd275282f123987e6a551c40a1ac0a4dba056
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Jul 31 22:06:30 2019 +0100

    File renaming must occur


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

bd2fd275282f123987e6a551c40a1ac0a4dba056
 CHANGELOG.md      | 4 ++++
 l3build-check.lua | 5 +++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 034213b..0af989a1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,10 @@ this project uses date-based 'snapshot' version identifiers.
 
 ## [Unreleased]
 
+### Fixed
+
+- Interaction between secondary files in some tests
+
 ## [2019-07-30]
 
 ### Added
diff --git a/l3build-check.lua b/l3build-check.lua
index 6cd9ac1..e45d210 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -773,9 +773,10 @@ function runtest(name, engine, hide, ext, pdfmode, breakout)
            ext ~= lveext and
            ext ~= logext then
            local newname = gsub(file,"(%.[^.]+)$","." .. engine .. "%1")
-           if not fileexists(testdir,newname) then
-             ren(testdir,file,newname)
+           if fileexists(testdir,newname) then
+             rm(testdir,newname)
            end
+           ren(testdir,file,newname)
         end
       end
     end





More information about the latex3-commits mailing list