[PATCH v2] patman: add warning for invalid tag

Simon Glass sjg at chromium.org
Sat Jul 24 23:11:55 CEST 2021


On Thu, 22 Jul 2021 at 08:51, Patrick Delaunay
<patrick.delaunay at foss.st.com> wrote:
>
> 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 at foss.st.com>
>
> ---
> I create this patch to avoid my frequent mistake:
> using "Serie-" tag instead of "Series-" as it is done in [1].
>
> RE_INV_TAG can be extended to other frequent errors.
>
> Any "Serie-" tag is refused with the patch, for example:
>
> ValueError: Line 28: Invalid tag =
>    'Serie-cc: Marek Behún <marek.behun at nic.cz>'
>
> [1] http://patchwork.ozlabs.org/project/uboot/patch/20210720203353.1.I550b95f6d12d59aeef5b744d837dbb360037d39e@changeid/
>
>
> Changes in v2:
> - add patman test testInvalidTag
>
>  tools/patman/func_test.py   | 11 +++++++++++
>  tools/patman/patchstream.py |  9 +++++++++
>  2 files changed, 20 insertions(+)
>

Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list