summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-29 21:31:29 (GMT)
committerSimon Glass <sjg@chromium.org>2017-06-09 02:21:59 (GMT)
commit1f487f85d2d2a78a8d4e533253ed5c853540aea1 (patch)
tree668e9029d77553e1c0f885c3e7b35912072864e2 /tools
parent2eb5fc13b3494ab2d32edb6235826f3442254749 (diff)
downloadu-boot-fsl-qoriq-1f487f85d2d2a78a8d4e533253ed5c853540aea1.tar.xz
patman: Add a maintainer test feature to MakeCcFile()
Allow the add_maintainers parameter to be a list of maintainers, thus allowing us to simulate calling the script in tests without actually needing it to work. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/patman/series.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/patman/series.py b/tools/patman/series.py
index 7a3534f..395b9ea 100644
--- a/tools/patman/series.py
+++ b/tools/patman/series.py
@@ -212,7 +212,9 @@ class Series(dict):
cover_fname: If non-None the name of the cover letter.
raise_on_error: True to raise an error when an alias fails to match,
False to just print a message.
- add_maintainers: Call the get_maintainers to CC maintainers
+ add_maintainers: Either:
+ True/False to call the get_maintainers to CC maintainers
+ List of maintainers to include (for testing)
Return:
Filename of temp file created
"""
@@ -227,7 +229,9 @@ class Series(dict):
raise_on_error=raise_on_error)
list += gitutil.BuildEmailList(commit.cc_list,
raise_on_error=raise_on_error)
- if add_maintainers:
+ if type(add_maintainers) == type(list):
+ list += add_maintainers
+ elif add_maintainers:
list += get_maintainer.GetMaintainer(commit.patch)
list = [m.encode('utf-8') if type(m) != str else m for m in list]
all_ccs += list