You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If lvtext is only changed in a non-default config (for example, lvtext = ".tex"), then the new lvtext is never used when checking with config.
Use this repository as an example,
add lvtext = ".tex" to config-plain.lua and an empty test.tex to ./testfiles-plain
run either l3build check -q or l3build check -cconfig-plain -q and see test.tex is not checked, and the *.lvt tests in ./testfiles-plain are still being checked.
The cause is, the values of lvtext and other ...ext variables are stored in and in latter uses retrieved from table test_types, which is only set once in l3build-variables.lua, and not updated after a non-default config is loaded by l3build.lua (see line 227 in l3build.lua snippet below, dofile(config)).
If lvtext is only changed in a non-default config (for example, lvtext = ".tex"), then the new lvtext is never used when checking with config.
Just in case, is this valid usage?
I switched to this kind of setting in muzimuzhi/tabularray-dev@5290480. The lvtext = ".tex" set for a specific config was inherited from https://github.com/lvjr/tabularray, and I decided to use the default .lvt extension in new set(s) of tests and keep old settings for inherited set of tests.
muzimuzhi
added a commit
to muzimuzhi/tabularray-dev
that referenced
this issue
Nov 22, 2024
5290480 (test: restrict `lvtext = ".tex"` to config-old, 2024-11-21)
silenced config-old tests, due to a l3build problem latex3/l3build#403.
Work around that issue.
Ah, that's a bit tricky - it used to work before we split the different types of test; I wonder if we should make it work again or change the docs here?
If
lvtext
is only changed in a non-default config (for example,lvtext = ".tex"
), then the newlvtext
is never used when checking with config.Use this repository as an example,
lvtext = ".tex"
toconfig-plain.lua
and an emptytest.tex
to./testfiles-plain
l3build check -q
orl3build check -cconfig-plain -q
and seetest.tex
is not checked, and the*.lvt
tests in./testfiles-plain
are still being checked.The cause is, the values of
lvtext
and other...ext
variables are stored in and in latter uses retrieved from tabletest_types
, which is only set once inl3build-variables.lua
, and not updated after a non-default config is loaded byl3build.lua
(see line 227 inl3build.lua
snippet below,dofile(config)
).l3build/l3build-variables.lua
Lines 222 to 236 in f757458
l3build/l3build.lua
Lines 225 to 229 in f757458
The text was updated successfully, but these errors were encountered: