]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.py: Further fix last commit.
authorBruno Haible <bruno@clisp.org>
Sat, 24 Feb 2024 23:17:42 +0000 (00:17 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 24 Feb 2024 23:24:47 +0000 (00:24 +0100)
* gnulib-tool.py (main): Make the mode test match for 'create-testdir',
'create-megatestdir', 'test', 'megatest'.

ChangeLog
gnulib-tool.py

index 282265ba8dea2c91c56857130009df2654440721..cd832bc5543004547904df3e0037a3b103f72354 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-02-24  Bruno Haible  <bruno@clisp.org>
+
+       gnulib-tool.py: Further fix last commit.
+       * gnulib-tool.py (main): Make the mode test match for 'create-testdir',
+       'create-megatestdir', 'test', 'megatest'.
+
 2024-02-24  Collin Funk  <collin.funk1@gmail.com>
 
        gnulib-tool.py: Fix conditional checking the incorrect variable.
index e168e8fc91f08514ab720c9a089257fcf3e7922b..1df790c49667ca8ee1756ed78c282468b78228ef 100755 (executable)
@@ -607,7 +607,7 @@ def main():
     if cmdargs.pobase == None and cmdargs.podomain != None:
         message = '%s: warning: --po-domain has no effect without a --po-base option\n' % constants.APP['name']
         sys.stderr.write(message)
-    if  mode != None and "tests" in mode and gnu_make:
+    if mode != None and 'test' in mode and gnu_make:
         message = '%s: --gnu-make not supported when including tests\n' % constants.APP['name']
         sys.stderr.write(message)
         sys.exit(1)