diff options
Diffstat (limited to 'tools/patman')
-rw-r--r-- | tools/patman/func_test.py | 5 | ||||
-rw-r--r-- | tools/patman/send.py | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/tools/patman/func_test.py b/tools/patman/func_test.py index eee20b9b155..b96bf7bd917 100644 --- a/tools/patman/func_test.py +++ b/tools/patman/func_test.py @@ -230,13 +230,14 @@ class TestFunctional(unittest.TestCase): dry_run = True in_reply_to = mel count = 2 - settings.alias = { + alias = { 'fdt': ['simon'], 'u-boot': ['u-boot@lists.denx.de'], 'simon': [self.leb], 'fred': [self.fred], 'joe': [self.joe], } + settings.alias = alias text = self._get_text('test01.txt') series = patchstream.get_metadata_for_test(text) @@ -255,7 +256,7 @@ class TestFunctional(unittest.TestCase): None, get_maintainer_script) cmd = gitutil.email_patches( series, cover_fname, args, dry_run, not ignore_bad_tags, - cc_file, in_reply_to=in_reply_to, thread=None) + cc_file, alias, in_reply_to=in_reply_to, thread=None) series.ShowActions(args, cmd, process_tags) cc_lines = open(cc_file, encoding='utf-8').read().splitlines() os.remove(cc_file) diff --git a/tools/patman/send.py b/tools/patman/send.py index 66f3c4eb952..9481a95f2f9 100644 --- a/tools/patman/send.py +++ b/tools/patman/send.py @@ -10,6 +10,7 @@ import sys from patman import checkpatch from patman import patchstream +from patman import settings from u_boot_pylib import gitutil from u_boot_pylib import terminal @@ -93,7 +94,7 @@ def email_patches(col, series, cover_fname, patch_files, process_tags, its_a_go, if its_a_go: cmd = gitutil.email_patches( series, cover_fname, patch_files, dry_run, not ignore_bad_tags, - cc_file, in_reply_to=in_reply_to, thread=thread, + cc_file, settings.alias, in_reply_to=in_reply_to, thread=thread, smtp_server=smtp_server) else: print(col.build(col.RED, "Not sending emails due to errors/warnings")) |