]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.py: Emit libtests in testdirs generated Makefile.am.
authorCollin Funk <collin.funk1@gmail.com>
Tue, 30 Apr 2024 05:15:56 +0000 (22:15 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Tue, 30 Apr 2024 05:15:56 +0000 (22:15 -0700)
Reported by Bruno Haible in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-04/msg00463.html>.

* pygnulib/GLTestDir.py (GLTestDir.execute): Modify the GLEmiter's
config variable instead of the GLTestDir's so that it can be accessed
when emitting the Makefile.am.

ChangeLog
pygnulib/GLTestDir.py

index c52dee0b6f571de571deb66460d53c4e89ad3cfc..0fdeee8cf90bb9fa01c2dbde153ce828a5812607 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2024-04-29  Collin Funk  <collin.funk1@gmail.com>
+
+       gnulib-tool.py: Emit libtests in testdirs generated Makefile.am.
+       Reported by Bruno Haible in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2024-04/msg00463.html>.
+       * pygnulib/GLTestDir.py (GLTestDir.execute): Modify the GLEmiter's
+       config variable instead of the GLTestDir's so that it can be accessed
+       when emitting the Makefile.am.
+
 2024-04-28  Collin Funk  <collin.funk1@gmail.com>
 
        doc: Update macro list in gnulib-cache.m4 documentation.
index 002eb30267099ef80d47c504b43d19cdb8349e8d..11b067e085162bc765c721daf222b73dfd96dd41 100644 (file)
@@ -244,8 +244,7 @@ class GLTestDir:
                     if file.startswith('lib/'):
                         libtests = True
                         break
-            if libtests:
-                self.config.setLibtests(True)
+            self.emitter.config.setLibtests(libtests)
 
         if single_configure:
             # Add the dummy module to the main module list if needed.