]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool: Omit the logs of skipped tests from test-suite.log.
authorBruno Haible <bruno@clisp.org>
Mon, 22 Jul 2024 13:05:30 +0000 (15:05 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 22 Jul 2024 13:05:30 +0000 (15:05 +0200)
* gnulib-tool.sh (func_emit_tests_Makefile_am): Emit an assignment to
IGNORE_SKIPPED_LOGS.
* pygnulib/GLEmiter.py (GLEmiter.tests_Makefile_am): Likewise.

ChangeLog
gnulib-tool.sh
pygnulib/GLEmiter.py

index 222eb9581bdcba5378d58bcddeb33f6e09be92ad..335a29b0c035e16a105d070a0d3bed29fbffb5e8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-07-22  Bruno Haible  <bruno@clisp.org>
+
+       gnulib-tool: Omit the logs of skipped tests from test-suite.log.
+       * gnulib-tool.sh (func_emit_tests_Makefile_am): Emit an assignment to
+       IGNORE_SKIPPED_LOGS.
+       * pygnulib/GLEmiter.py (GLEmiter.tests_Makefile_am): Likewise.
+
 2024-07-21  Bruno Haible  <bruno@clisp.org>
 
        bootstrap: Avoid failure when gnulib-tool removed gettext.m4.
index 12f0b824619964b2fe87228a36d018e82fd9f898..0efc25f0dc2375173dd94215fd7fcc87d709530b 100755 (executable)
@@ -4438,6 +4438,8 @@ func_emit_tests_Makefile_am ()
   # EXEEXT is defined by AC_PROG_CC through autoconf.
   # srcdir is defined by autoconf and automake.
   echo "TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='\$(srcdir)'"
+  # Omit logs of skipped tests from test-suite.log, if Automake ≥ 1.17 is used.
+  echo "IGNORE_SKIPPED_LOGS = 1"
   echo
   cat "$tmp"/main_snippets "$tmp"/longrunning_snippets \
     | sed -e 's|\$(top_srcdir)/build-aux/|$(top_srcdir)/'"$auxdir"'/|g'
index cb6106e9413216fa048d401f44abf24c96d26193..7eb8b27d46772b58db8ac57f6d0f624a7fac3955 100644 (file)
@@ -1216,7 +1216,9 @@ AC_DEFUN([%V1%_LIBSOURCES], [
         # Many test scripts use ${EXEEXT} or ${srcdir}.
         # EXEEXT is defined by AC_PROG_CC through autoconf.
         # srcdir is defined by autoconf and automake.
-        emit += "TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='$(srcdir)'\n\n"
+        emit += "TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='$(srcdir)'\n"
+        # Omit logs of skipped tests from test-suite.log, if Automake ≥ 1.17 is used.
+        emit += 'IGNORE_SKIPPED_LOGS = 1\n\n'
         all_snippets = main_snippets + longrun_snippets
         all_snippets = all_snippets.replace('$(top_srcdir)/build-aux/',
                                             '$(top_srcdir)/%s/' % auxdir)