* 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: 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.
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]