[latex3-commits] [git/LaTeX3-latex3-l3build] regenerate: Adopt name suggestions (fc9ae3b)

Marcel Fabian Krüger tex at 2krueger.de
Sat Jun 5 14:49:26 CEST 2021


Repository : https://github.com/latex3/l3build
On branch  : regenerate
Link       : https://github.com/latex3/l3build/commit/fc9ae3b38a6f80747d720ce917b63377275a3922

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

commit fc9ae3b38a6f80747d720ce917b63377275a3922
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Sat Jun 5 14:49:26 2021 +0200

    Adopt name suggestions


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

fc9ae3b38a6f80747d720ce917b63377275a3922
 CHANGELOG.md          | 2 +-
 l3build-arguments.lua | 3 ++-
 l3build-check.lua     | 4 ++--
 l3build.dtx           | 6 +++---
 l3build.lua           | 2 +-
 5 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index a56516b..6ec6937 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,7 +8,7 @@ this project uses date-based 'snapshot' version identifiers.
 ## [Unreleased]
 
 ### Added
-- Add the `--show-save-cmds` flag for `l3build check` to generate a list of
+- Add the `--show-saves` flag for `l3build check` to generate a list of
   `l3build save` commands to regenerate all failing tests
 
 ## [2021-05-06]
diff --git a/l3build-arguments.lua b/l3build-arguments.lua
index cc921f9..56a1922 100644
--- a/l3build-arguments.lua
+++ b/l3build-arguments.lua
@@ -139,9 +139,10 @@ option_list =
         desc  = "If 'halt-on-error' stops, show the full log of the failure",
         type  = "boolean"
       },
-    ["show-save-cmds"] =
+    ["show-saves"] =
       {
         desc  = "If tests fail, show the l3build save invocation to regenerate the tests",
+        short = "X",
         type  = "boolean"
       },
     shuffle =
diff --git a/l3build-check.lua b/l3build-check.lua
index 80d6c74..68fa3ef 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -856,7 +856,7 @@ end
 -- A short auxiliary to print the list of differences for check
 local function showsavecommands(failurelist)
   local savecmds = {}
-  local checkcmd = "l3build check --show-save-cmds"
+  local checkcmd = "l3build check --show-saves"
   local prefix = "l3build save"
   if options.config and options.config[1] ~= 'build' then
     local config = " -c " .. options.config[1]
@@ -1005,7 +1005,7 @@ function check(names)
     end
     if errorlevel ~= 0 then
       checkdiff()
-      if options["show-save-cmds"] then
+      if options["show-saves"] then
         showsavecommands(failurelist)
       end
     else
diff --git a/l3build.dtx b/l3build.dtx
index 7d9e61c..865d8bf 100644
--- a/l3build.dtx
+++ b/l3build.dtx
@@ -379,7 +379,7 @@
 % \item |--rerun| Run tests without unpacking/set up
 % \item |--show-log-on-error| To be used in addition to \texttt{--halt-on-error} and results
 %   in the full \texttt{.log} file of a failed test to be shown on the console
-% \item |--show-save-cmds| When tests fail, print the \texttt{l3build save} commands needed
+% \item |--show-saves| (|-X|) When tests fail, print the \texttt{l3build save} commands needed
 %   to regenerate the tests assuming that the failures were false negatives.
 % \item |--shuffle| Shuffle the order in which tests run
 % \item |--texmfhome| Sets the location of the user tree for installing
@@ -1127,7 +1127,7 @@
 % changes and therefore all log file based tests using the component fail with
 % these changes.
 %
-% In these cases, the option |--show-save-cmds| can be passed to
+% In these cases, the option |--show-saves| can be passed to
 % |l3build check| in order to generate a list of |l3build save| commands which
 % can be executed to regenerate the expected output of all tests which fail.
 % Additionally it sometimes prints a list of |l3build check| commands for tests
@@ -1135,7 +1135,7 @@
 % commands. After running all these |l3build check| commands and all
 % |l3build save| commands listed by them, all tests will succeed.
 %
-% When bundles are used |l3build check --show-save-cmds| has to be executed
+% When bundles are used |l3build check --show-saves| has to be executed
 % separately for every module in the bundle.
 %
 % This option is potentially dangerous and therefore should only be used with
diff --git a/l3build.lua b/l3build.lua
index c97c679..f010f44 100755
--- a/l3build.lua
+++ b/l3build.lua
@@ -162,7 +162,7 @@ if options["target"] == "check" then
         end
         print("")
       end
-      if options["show-save-cmds"] then
+      if options["show-saves"] then
         local savecmds, recheckcmds = "", ""
         for _,config in ipairs(failed) do
           local testdir = testdir





More information about the latex3-commits mailing list.