diff options
author | Martin Liska <mliska@suse.cz> | 2020-05-20 11:05:23 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2020-05-20 11:05:23 +0200 |
commit | 29c34351be83bc84238cbc8c3c8818c0f46cef38 (patch) | |
tree | 8cbb42cd5ec7e65430e1647a376834eaf34fec8c /contrib/gcc-changelog/git_commit.py | |
parent | 3bcaf16edd881b81324b6789f7b48ca365463156 (diff) | |
download | gcc-29c34351be83bc84238cbc8c3c8818c0f46cef38.zip gcc-29c34351be83bc84238cbc8c3c8818c0f46cef38.tar.gz gcc-29c34351be83bc84238cbc8c3c8818c0f46cef38.tar.bz2 |
git_commit.py: Add tests for signatures.
* gcc-changelog/git_commit.py: Refactor to make flake8 happy.
* gcc-changelog/test_email.py: Add new test.
* gcc-changelog/test_patches.txt: Add new patch.
Diffstat (limited to 'contrib/gcc-changelog/git_commit.py')
-rwxr-xr-x | contrib/gcc-changelog/git_commit.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py index c9b8497..e4903ca 100755 --- a/contrib/gcc-changelog/git_commit.py +++ b/contrib/gcc-changelog/git_commit.py @@ -155,9 +155,10 @@ REVIEWED_BY_PREFIX = 'reviewed-by: ' REVIEWED_ON_PREFIX = 'reviewed-on: ' SIGNED_OFF_BY_PREFIX = 'signed-off-by: ' -REVIEW_PREFIXES = (REVIEWED_BY_PREFIX, REVIEWED_ON_PREFIX,\ +REVIEW_PREFIXES = (REVIEWED_BY_PREFIX, REVIEWED_ON_PREFIX, SIGNED_OFF_BY_PREFIX) + class Error: def __init__(self, message, line=None): self.message = message @@ -350,7 +351,6 @@ class GitCommit: else: pr_line = line.lstrip() - lowered_line = line.lower() if lowered_line.startswith(CO_AUTHORED_BY_PREFIX): name = line[len(CO_AUTHORED_BY_PREFIX):] |