From: Bruno Haible Date: Sat, 24 Feb 2024 23:17:42 +0000 (+0100) Subject: gnulib-tool.py: Further fix last commit. X-Git-Tag: v1.0~378 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=39f69c5fa647292559fed4bcadc9db03a82b410f;p=gnulib.git gnulib-tool.py: Further fix last commit. * gnulib-tool.py (main): Make the mode test match for 'create-testdir', 'create-megatestdir', 'test', 'megatest'. --- diff --git a/ChangeLog b/ChangeLog index 282265ba8d..cd832bc554 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-02-24 Bruno Haible + + 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 gnulib-tool.py: Fix conditional checking the incorrect variable. diff --git a/gnulib-tool.py b/gnulib-tool.py index e168e8fc91..1df790c496 100755 --- a/gnulib-tool.py +++ b/gnulib-tool.py @@ -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)