From: Collin Funk Date: Mon, 1 Apr 2024 08:40:01 +0000 (-0700) Subject: gnulib-tool.py: Only check existence for --extract-tests-module. X-Git-Tag: v1.0~192 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=289ab93455014b6e7b7a3d4b7be759dc834ca208;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index 0fcb7bedc7..127d1f44b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-04-01 Collin Funk + + 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 gnulib-tool.py: Fix --extract-tests-module with a test module. diff --git a/pygnulib/main.py b/pygnulib/main.py index 688ab249f3..55d635d074 100644 --- a/pygnulib/main.py +++ b/pygnulib/main.py @@ -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]