summaryrefslogtreecommitdiffstats
path: root/meta/lib/patchtest/tests/test_mbox.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/patchtest/tests/test_mbox.py')
-rw-r--r--meta/lib/patchtest/tests/test_mbox.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/patchtest/tests/test_mbox.py b/meta/lib/patchtest/tests/test_mbox.py
index ae16c4bf93..0e3d055780 100644
--- a/meta/lib/patchtest/tests/test_mbox.py
+++ b/meta/lib/patchtest/tests/test_mbox.py
@@ -9,6 +9,7 @@ import collections
9import parse_shortlog 9import parse_shortlog
10import parse_signed_off_by 10import parse_signed_off_by
11import pyparsing 11import pyparsing
12import re
12import subprocess 13import subprocess
13from data import PatchTestInput 14from data import PatchTestInput
14 15
@@ -82,7 +83,7 @@ class TestMbox(base.Base):
82 def test_shortlog_length(self): 83 def test_shortlog_length(self):
83 for commit in TestMbox.commits: 84 for commit in TestMbox.commits:
84 # no reason to re-check on revert shortlogs 85 # no reason to re-check on revert shortlogs
85 shortlog = commit.shortlog 86 shortlog = re.sub('^(\[.*?\])+ ', '', commit.shortlog)
86 if shortlog.startswith('Revert "'): 87 if shortlog.startswith('Revert "'):
87 continue 88 continue
88 l = len(shortlog) 89 l = len(shortlog)