[latex3-commits] [git/LaTeX3-latex3-l3build] main: Allow saving for test_types without expectations (7b1e422)

Marcel Fabian Krüger tex at 2krueger.de
Thu May 6 19:32:12 CEST 2021


Repository : https://github.com/latex3/l3build
On branch  : main
Link       : https://github.com/latex3/l3build/commit/7b1e4223b85fffd5252d5afa5a451dc429f4f1e9

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

commit 7b1e4223b85fffd5252d5afa5a451dc429f4f1e9
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Thu May 6 19:32:12 2021 +0200

    Allow saving for test_types without expectations


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

7b1e4223b85fffd5252d5afa5a451dc429f4f1e9
 l3build-check.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/l3build-check.lua b/l3build-check.lua
index dce9e68..47ab19c 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -1007,7 +1007,7 @@ function save(names)
       return 1
     end
     local test_type = test_types[kind]
-    if locate({unpackdir, testfiledir}, {name .. test_type.expectation}) then
+    if test_type.expectation and locate({unpackdir, testfiledir}, {name .. test_type.expectation}) then
       print("Saved " .. test_type.test .. " file would override a "
         .. test_type.expectation .. " file of the same name")
       return 1





More information about the latex3-commits mailing list.