[latex3-commits] [git/LaTeX3-latex3-l3build] master: fix for checkruns>1 & recordstatus=true (88767a6)

Will Robertson wspr81 at gmail.com
Sat Feb 8 13:54:43 CET 2020


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/88767a6790fdd61f0881334317520912f345dd28

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

commit 88767a6790fdd61f0881334317520912f345dd28
Author: Will Robertson <wspr81 at gmail.com>
Date:   Sat Feb 8 23:24:43 2020 +1030

    fix for checkruns>1 & recordstatus=true
    
    closes #90


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

88767a6790fdd61f0881334317520912f345dd28
 CHANGELOG.md      |  4 ++++
 l3build-check.lua | 11 ++++++++---
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1c54b00..ea37e2f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,10 @@ this project uses date-based 'snapshot' version identifiers.
 
 ## [Unreleased]
 
+### Fixed
+
+- When `checkruns` > 1 and `recordstatus=true`, testing code would crash. (fixes #90)
+
 ## [2020-02-03]
 
 ### Changed
diff --git a/l3build-check.lua b/l3build-check.lua
index 8bafe05..11164df 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -292,9 +292,14 @@ local function normalize_log(content,engine,errlevels)
   if recordstatus then
     new_content = new_content .. '***************' .. os_newline
     for i = 1, checkruns do
-      new_content = new_content ..
-        'Compilation ' .. i .. ' of test file completed with exit status ' ..
-        errlevels[i] .. os_newline
+      if (errlevels[i]==nil) then
+        new_content = new_content ..
+          'Compilation ' .. i .. ' of test file skipped ' .. os_newline
+      else
+        new_content = new_content ..
+          'Compilation ' .. i .. ' of test file completed with exit status ' ..
+          errlevels[i] .. os_newline
+      end
     end
   end
   return new_content





More information about the latex3-commits mailing list.