[latex3-commits] [git/LaTeX3-latex3-l3build] master: New option --dirty (314ac91)

Joseph Wright joseph.wright at morningstar2.co.uk
Tue Jul 31 22:23:17 CEST 2018


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/314ac91631109ecd77d6fd6cd6286c4763b78e42

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

commit 314ac91631109ecd77d6fd6cd6286c4763b78e42
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Jul 31 21:23:17 2018 +0100

    New option --dirty


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

314ac91631109ecd77d6fd6cd6286c4763b78e42
 CHANGELOG.md          |    1 +
 l3build-arguments.lua |    5 +++++
 l3build-check.lua     |    4 +++-
 l3build.dtx           |    1 +
 4 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 734626c..71e933a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@ this project uses date-based 'snapshot' version identifiers.
 
 ### Added
 - `CHANGELOG.md`
+- `--dirty` option
 - `target_list` table to allow control of targets without redefining
   `main()`
 
diff --git a/l3build-arguments.lua b/l3build-arguments.lua
index 960f288..4416ab6 100644
--- a/l3build-arguments.lua
+++ b/l3build-arguments.lua
@@ -47,6 +47,11 @@ option_list =
         desc  = "Sets the date to insert into sources",
         type  = "string"
       },
+    dirty =
+      {
+        desc = "Skip cleaning up the test area",
+        type = "boolean"
+      },
     ["dry-run"] =
       {
         desc = "Dry run for install",
diff --git a/l3build-check.lua b/l3build-check.lua
index a6554b9..d4af1dd 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -55,7 +55,9 @@ local remove           = os.remove
 -- Set up the check system files: needed for checking one or more tests and
 -- for saving the test files
 function checkinit()
-  cleandir(testdir)
+  if not options["dirty"] then
+    cleandir(testdir)
+  end
   depinstall(checkdeps)
   -- Copy dependencies to the test directory itself: this makes the paths
   -- a lot easier to manage, and is important for dealing with the log and
diff --git a/l3build.dtx b/l3build.dtx
index e2bc2b5..19447b4 100644
--- a/l3build.dtx
+++ b/l3build.dtx
@@ -317,6 +317,7 @@
 %   \item |--config| (|-c|) Configuration(s) to use for testing
 % \item |--date| Date to use when tagging
 %   data
+% \item |--dirty| Skip cleaning up of the test area
 % \item |--dry-run| Runs the \texttt{install} target but does not copy
 %   any files: simply lists those that would be installed
 % \item |--engine| (|-e|) Sets the engine to use for





More information about the latex3-commits mailing list