diff options
author | Simon Glass <sjg@chromium.org> | 2025-04-07 22:51:45 +1200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2025-05-27 10:07:41 +0100 |
commit | e10201aa8ccb1fb681cafab4225399f4fdb8497d (patch) | |
tree | 1bb96dd2d6c13d472813be4d840ba5ef0a7e0f57 /tools/patman/func_test.py | |
parent | 7dc55435b2e869e26ab28926b92a7dc6620e2108 (diff) |
patman: Pass the alias dict into gitutil.email_patches()
Rather than accessing the settings module in this function, require the
alias dict to be passed in.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/func_test.py')
-rw-r--r-- | tools/patman/func_test.py | 5 |
1 files changed, 3 insertions, 2 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) |