]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
gnulib-tool.py: Fix empty newline output in test directories.
authorCollin Funk <collin.funk1@gmail.com>
Fri, 22 Mar 2024 19:19:28 +0000 (12:19 -0700)
committerBruno Haible <bruno@clisp.org>
Fri, 22 Mar 2024 20:08:01 +0000 (21:08 +0100)
* pygnulib/GLTestDir.py (GLTestDir.execute, GLMegaTestDir.execute):
Match newlines printed by gnulib-tool.sh.

ChangeLog
pygnulib/GLTestDir.py

index 38633a82e95ebb1daffac56a238a2cbd3ac9d08b..183a1e199663b3f7af9e772365898a4cd3d59926 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-03-22  Collin Funk  <collin.funk1@gmail.com>
+
+       gnulib-tool.py: Fix empty newline output in test directories.
+       * pygnulib/GLTestDir.py (GLTestDir.execute, GLMegaTestDir.execute):
+       Match newlines printed by gnulib-tool.sh.
+
 2024-03-22  Collin Funk  <collin.funk1@gmail.com>
 
        gnulib-tool.py: Fix unconditional Automake snippets for non-tests.
index ea16d808a39cc9ca912b40e64bed8ceba29c8fe3..6f6a75931a3e87c8be506d4ee354289bfad18f0c 100644 (file)
@@ -580,6 +580,7 @@ class GLTestDir(object):
         emit += self.emitter.preEarlyMacros(False, '', modules)
         if any_uses_subdirs:
             emit += 'AM_PROG_CC_C_O\n'
+            emit += '\n'
         snippets = list()
         for module in final_modules:
             if single_configure:
@@ -1018,7 +1019,7 @@ class GLMegaTestDir(object):
 
         emit = '# Process this file with autoconf '
         emit += 'to produce a configure script.\n'
-        emit += 'AC_INIT([dummy], [0])\n\n'
+        emit += 'AC_INIT([dummy], [0])\n'
         if auxdir != '.':
             emit += 'AC_CONFIG_AUX_DIR([%s])\n' % auxdir
         emit += 'AM_INIT_AUTOMAKE\n\n'