]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.py: Only check existence for --extract-tests-module.
authorCollin Funk <collin.funk1@gmail.com>
Mon, 1 Apr 2024 08:40:01 +0000 (01:40 -0700)
committerBruno Haible <bruno@clisp.org>
Mon, 1 Apr 2024 13:21:21 +0000 (15:21 +0200)
* pygnulib/main.py (main): Check that the test module exists instead of
looking it up and patching it if diff's are found.

ChangeLog
pygnulib/main.py

index 0fcb7bedc7410953a5d05ab30caac05738127eeb..127d1f44b1106a919379b588cb99522ffe71d2f0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-04-01  Collin Funk  <collin.funk1@gmail.com>
+
+       gnulib-tool.py: Only check existence for --extract-tests-module.
+       * pygnulib/main.py (main): Check that the test module exists instead of
+       looking it up and patching it if diff's are found.
+
 2024-04-01  Collin Funk  <collin.funk1@gmail.com>
 
        gnulib-tool.py: Fix --extract-tests-module with a test module.
index 688ab249f3d0aaa9afd7a2b65b0e702bd65be79e..55d635d0743c5cd713abb70e34a1fd76c5670170 100644 (file)
@@ -1268,9 +1268,8 @@ def main() -> None:
         modulesystem = classes.GLModuleSystem(config)
         for name in modules:
             module = modulesystem.find(name)
-            if module:
-                if module.getTestsModule():
-                    print(module.getTestsName())
+            if module and modulesystem.exists(module.getTestsName()):
+                print(module.getTestsName())
 
     elif mode == 'copy-file':
         srcpath = files[0]