bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
From: Bruno Haible <bruno@clisp.org>
To: bug-gnulib@gnu.org
Subject: gnulib-tool.py: Persist the --with-longrunning-tests option
Date: Fri, 12 Apr 2024 15:48:19 +0200	[thread overview]
Message-ID: <6664430.zg2vgfMmLB@nimes> (raw)

This test failure

$ ./test-cache-1-7.sh 
Files ./test-cache-1-7.result/m4/gnulib-cache.m4 and tmp1858286-result/m4/gnulib-cache.m4 differ
FAIL: gnulib-tool's result has unexpected differences.
$ diff -u ./test-cache-1-7.result/m4/gnulib-cache.m4 tmp1858286-result/m4/gnulib-cache.m4
--- ./test-cache-1-7.result/m4/gnulib-cache.m4  2024-04-12 00:17:21.791623238 +0200
+++ tmp1858286-result/m4/gnulib-cache.m4        2024-04-12 15:33:58.097044498 +0200
@@ -44,7 +44,6 @@
 gl_MODULES([
   
 ])
-gl_WITH_LONGRUNNING_TESTS
 gl_AVOID([])
 gl_SOURCE_BASE([lib])
 gl_M4_BASE([m4])

is fixed by this patch.


2024-04-12  Bruno Haible  <bruno@clisp.org>

	gnulib-tool.py: Persist the --with-longrunning-tests option.
	* pygnulib/GLImport.py (GLImport.gnulib_cache): Conditionally add
	gl_WITH_LONGRUNNING_TESTS to gnulib-cache.m4.

diff --git a/pygnulib/GLImport.py b/pygnulib/GLImport.py
index b200c7b250..903bd2e581 100644
--- a/pygnulib/GLImport.py
+++ b/pygnulib/GLImport.py
@@ -548,6 +548,8 @@ class GLImport:
             emit += 'gl_WITH_OBSOLETE\n'
         if self.config.checkInclTestCategory(TESTS['cxx-tests']):
             emit += 'gl_WITH_CXX_TESTS\n'
+        if self.config.checkInclTestCategory(TESTS['longrunning-tests']):
+            emit += 'gl_WITH_LONGRUNNING_TESTS\n'
         if self.config.checkInclTestCategory(TESTS['privileged-tests']):
             emit += 'gl_WITH_PRIVILEGED_TESTS\n'
         if self.config.checkInclTestCategory(TESTS['unportable-tests']):





                 reply	other threads:[~2024-04-12 13:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6664430.zg2vgfMmLB@nimes \
    --to=bruno@clisp.org \
    --cc=bug-gnulib@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).