diff options
author | Alexandre Oliva <oliva@adacore.com> | 2020-07-07 09:02:01 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2020-07-07 09:05:10 +0200 |
commit | a759bfc7cf238b9fc5bf97884297fc69d8cdf2b5 (patch) | |
tree | fd2ec675910cbba7708d5651295fe2466ed9ee1b /contrib/gcc-changelog/test_email.py | |
parent | c50502ca4ebb4d4bd2df9edf1eb5c53aacfa0a1e (diff) | |
download | gcc-a759bfc7cf238b9fc5bf97884297fc69d8cdf2b5.zip gcc-a759bfc7cf238b9fc5bf97884297fc69d8cdf2b5.tar.gz gcc-a759bfc7cf238b9fc5bf97884297fc69d8cdf2b5.tar.bz2 |
accept <case> and [cond] in ChangeLog
Only '(' and ':' currently terminate file lists in ChangeLog entries
in the ChangeLog parser. This rules out such legitimate entries as:
* filename <CASE>:
* filename [COND]:
This patch extends the ChangeLog parser to recognize these forms.
for contrib/ChangeLog
* gcc-changelog/git_commit.py: Support CASE and COND.
* gcc-changelog/test_patches.txt: Add test.
* gcc-changelog/test_email.py: Add test.
Co-Authored-By: Martin Liska <mliska@suse.cz>
Diffstat (limited to 'contrib/gcc-changelog/test_email.py')
-rwxr-xr-x | contrib/gcc-changelog/test_email.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/gcc-changelog/test_email.py b/contrib/gcc-changelog/test_email.py index 1c9f8847..b6fbe6a 100755 --- a/contrib/gcc-changelog/test_email.py +++ b/contrib/gcc-changelog/test_email.py @@ -361,3 +361,7 @@ class TestGccChangelog(unittest.TestCase): assert '\tBackported from master:' in entry assert '\t2020-06-11 Martin Liska <mliska@suse.cz>' in entry assert '\t\t Jakub Jelinek <jakub@redhat.com>' in entry + + def test_square_and_lt_gt(self): + email = self.from_patch_glob('0001-Check-for-more-missing') + assert not email.errors |