From 39f69c5fa647292559fed4bcadc9db03a82b410f Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 25 Feb 2024 00:17:42 +0100 Subject: [PATCH] gnulib-tool.py: Further fix last commit. * gnulib-tool.py (main): Make the mode test match for 'create-testdir', 'create-megatestdir', 'test', 'megatest'. --- ChangeLog | 6 ++++++ gnulib-tool.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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) -- 2.39.5