patman: Detect unexpected END
authorPatrick Delaunay <patrick.delaunay@st.com>
Thu, 2 Jul 2020 17:08:24 +0000 (19:08 +0200)
committerSimon Glass <sjg@chromium.org>
Sat, 25 Jul 2020 20:46:57 +0000 (14:46 -0600)
commit7058dd071accc0bafe5c4024e30631fb56fd7126
tree714eac13b02a511c180cab116c3474eb3f5ae59d
parent961420fa5f3bcf837518e7f72d6f8c3ee090643d
patman: Detect unexpected END

Detect unexpected 'END' line when a section is not detected.

This patch detect issue when tag name for section start is misspelled,
for example 'Commit-note:' for 'Commit-notes:'

  Commit-note:
  ....
  END

Then 'Commit-note:' is removed silently by re_remove = "Commit-\w*:"
but 'END' is kept in commit message.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/patman/patchstream.py