mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
patman: add warning for invalid tag
Add a error in patman tool when the commit message contents an invalid tag "Serie-.*" instead of "Series-.*". Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
b29a0dbdc3
commit
a6123333ab
2 changed files with 20 additions and 0 deletions
|
@ -506,6 +506,17 @@ Tested-by: %s
|
|||
'Reviewed-by': {self.joe, self.mary},
|
||||
'Tested-by': {self.leb}})
|
||||
|
||||
def testInvalidTag(self):
|
||||
"""Test invalid tag in a patchstream"""
|
||||
text = '''This is a patch
|
||||
|
||||
Serie-version: 2
|
||||
'''
|
||||
with self.assertRaises(ValueError) as exc:
|
||||
pstrm = PatchStream.process_text(text)
|
||||
self.assertEqual("Line 3: Invalid tag = 'Serie-version: 2'",
|
||||
str(exc.exception))
|
||||
|
||||
def testMissingEnd(self):
|
||||
"""Test a missing END tag"""
|
||||
text = '''This is a patch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue