patman: Pass aliases to Series.MakeCcFile()
Rather than accessing settings directly, pass the aliases in, so that
we can do the same from tests. With further work this will allow the
tests to work without using settings.alias
Signed-off-by: Simon Glass <sjg@chromium.org>
diff --git a/tools/patman/send.py b/tools/patman/send.py
index 9481a95..16fae31 100644
--- a/tools/patman/send.py
+++ b/tools/patman/send.py
@@ -87,7 +87,8 @@
smtp_server (str): SMTP server to use to send patches (None for default)
"""
cc_file = series.MakeCcFile(process_tags, cover_fname, not ignore_bad_tags,
- add_maintainers, limit, get_maintainer_script)
+ add_maintainers, limit, get_maintainer_script,
+ settings.alias)
# Email the patches out (giving the user time to check / cancel)
cmd = ''