Re: luatexdir/luaoutputdir.test non-deterministic test failure

Karl Berry <[email protected]>
Newsgroups gmane.comp.tex.live
Message-ID <[email protected]>
Hi Maxim,

    mkdir: cannot create directory
    ‘tests/outdirlua’: No such file or directory

Thanks for the report. I added a mkdir tests to that test (r76316). It
was random for the usual reason - many other tests already did the
mkdir, so it would depend on what ran first. Hopefully this will fix it.

(I'm surprised mkdir -p is portable enough, but all the other places
that do this use it unconditionally, so following suit here.)

Luigi, see my diff below for your upstream. --thanks, karl.

2025-09-14  Karl Berry  <[email protected]>

	* luaoutputdir.test (tests): mkdir top-level subdir.
	Report from Maxim Cournoyer, tex-live 12 Sep 2025 22:42:53.

--- luaoutputdir.test	(revision 76261)
+++ luaoutputdir.test	(working copy)
@@ -14,6 +14,7 @@
 outdir=tests/outdirlua
 outfile=outfileLUA.tex
 rm -rf $outdir  # don't let previous runs interfere
+test -d tests || mkdir -p tests # ensure subdir exists
 mkdir $outdir || exit 1
 
 $_luatex -ini -output-directory=$outdir '\immediate\openout1='$outfile'\end' \
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.