]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
patman: Fix tests if add_maintainers is set to False
authorSean Anderson <seanga2@gmail.com>
Fri, 19 Apr 2024 02:36:30 +0000 (22:36 -0400)
committerSimon Glass <sjg@chromium.org>
Wed, 3 Jul 2024 06:36:32 +0000 (07:36 +0100)
If add_maintainers is set to False in the user's ~/.patman config, it will
cause the custom_get_maintainer_script to fail since that test expects
maintainers to be added. Set add_maintainer to True in the .patman config
to prevent this.

Fixes: 8c042fb7f9f ("patman: add '--get-maintainer-script' argument")
Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/patman/func_test.py

index e3918497cf43a5c5621589c4d79a75edfd887626..9c016fb5e9a60c1f5eb58bca9e9e1313a0c2c409 100644 (file)
@@ -540,7 +540,8 @@ complicated as possible''')
             with open('.patman', 'w', buffering=1) as f:
                 f.write('[settings]\n'
                         'get_maintainer_script: dummy-script.sh\n'
-                        'check_patch: False\n')
+                        'check_patch: False\n'
+                        'add_maintainers: True\n')
             with open('dummy-script.sh', 'w', buffering=1) as f:
                 f.write('#!/usr/bin/env python\n'
                         'print("hello@there.com")\n')