This test failure:

$ GNULIB_TOOL_IMPL=py ./test-create-megatestdir-1.sh 
./test-create-megatestdir-1.out tmp3004461-out differ: byte 47492, line 2144
--- ./test-create-megatestdir-1.out     2024-03-19 17:15:42.776229407 +0100
+++ tmp3004461-out      2024-03-25 14:54:20.378618846 +0100
@@ -2141,6 +2141,5 @@
 executing automake --add-missing --copy
 patching file build-aux/test-driver
 executing aclocal
-executing mkdir build-aux
 executing autoconf
 executing automake --add-missing --copy
FAIL: gnulib-tool's output has unexpected differences.

is fixed by the following patch.


2024-03-25  Bruno Haible  <br...@clisp.org>

        gnulib-tool.py: Print "executing mkdir ..." messages.
        * pygnulib/GLTestDir.py (GLTestDir.execute, GLMegaTestDir.execute):
        Print a message before creating a 'build-aux' directory.

diff --git a/pygnulib/GLTestDir.py b/pygnulib/GLTestDir.py
index 19783755ee..4de829538c 100644
--- a/pygnulib/GLTestDir.py
+++ b/pygnulib/GLTestDir.py
@@ -713,6 +713,7 @@ class GLTestDir(object):
         args = [UTILS['aclocal'], '-I', m4base]
         constants.execute(args, verbose)
         if not isdir('build-aux'):
+            print('executing mkdir build-aux')
             os.mkdir('build-aux')
         # autoconf
         args = [UTILS['autoconf']]
@@ -747,6 +748,7 @@ class GLTestDir(object):
             args = [UTILS['aclocal'], '-I', joinpath('..', m4base)]
             constants.execute(args, verbose)
             if not isdir(joinpath('../build-aux')):
+                print('executing mkdir ../build-aux')
                 os.mkdir('../build-aux')
             # autoconf
             args = [UTILS['autoconf']]
@@ -1048,6 +1050,7 @@ class GLMegaTestDir(object):
         constants.execute(args, verbose)
         try:  # Try to make a directory
             if not isdir('build-aux'):
+                print('executing mkdir build-aux')
                 os.mkdir('build-aux')
         except Exception as error:
             pass




Reply via email to