[latex3-commits] [git/LaTeX3-latex3-l3build] main: Ensure `testdir` and `resultdir` exist even with `--dirty` (d13795c)
Joseph Wright
joseph.wright at morningstar2.co.uk
Fri Feb 17 11:08:37 CET 2023
Repository : https://github.com/latex3/l3build
On branch : main
Link : https://github.com/latex3/l3build/commit/d13795cd3bbc5da22d638e429988f773762e8bec
>---------------------------------------------------------------
commit d13795cd3bbc5da22d638e429988f773762e8bec
Author: Yukai Chou <muzimuzhi at gmail.com>
Date: Fri Feb 17 17:51:07 2023 +0800
Ensure `testdir` and `resultdir` exist even with `--dirty`
>---------------------------------------------------------------
d13795cd3bbc5da22d638e429988f773762e8bec
CHANGELOG.md | 3 +++
l3build-check.lua | 5 ++++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f14e4db..1ca3663 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,9 @@ this project uses date-based 'snapshot' version identifiers.
## [Unreleased]
+### Fixed
+- Ensure directories `testdir` and `resultdir` exist when `--dirty` is set
+
## [2023-02-16]
### Changed
diff --git a/l3build-check.lua b/l3build-check.lua
index d6d6808..e9d5f4d 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -55,7 +55,10 @@ 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()
- if not options["dirty"] then
+ if options["dirty"] then
+ mkdir(testdir)
+ mkdir(resultdir)
+ else
cleandir(testdir)
cleandir(resultdir)
end
More information about the latex3-commits
mailing list.